From c560d9f6a17495830351e8872770e07ab1283734 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Tue, 5 Mar 2024 20:59:35 +0100 Subject: [PATCH] following cppcheck fix constVariablePointer --- src/libcmis/ws-object-type.cxx | 2 +- src/libcmis/ws-object.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcmis/ws-object-type.cxx b/src/libcmis/ws-object-type.cxx index d7c3af0..150ec9b 100644 --- a/src/libcmis/ws-object-type.cxx +++ b/src/libcmis/ws-object-type.cxx @@ -66,7 +66,7 @@ WSObjectType& WSObjectType::operator=( const WSObjectType& copy ) void WSObjectType::refresh( ) { libcmis::ObjectTypePtr type = m_session->getType( m_id ); - const WSObjectType* const other = dynamic_cast< WSObjectType* >( type.get( ) ); + const auto other = dynamic_cast< const WSObjectType* >( type.get( ) ); if ( other != NULL ) *this = *other; } diff --git a/src/libcmis/ws-object.cxx b/src/libcmis/ws-object.cxx index 4017725..081cac2 100644 --- a/src/libcmis/ws-object.cxx +++ b/src/libcmis/ws-object.cxx @@ -105,7 +105,7 @@ libcmis::ObjectPtr WSObject::updateProperties( void WSObject::refresh( ) { libcmis::ObjectPtr object = m_session->getObject( getId( ) ); - const WSObject* const other = dynamic_cast< WSObject* >( object.get( ) ); + const auto other = dynamic_cast< const WSObject* >( object.get( ) ); if ( other != NULL ) *this = *other; }