diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-02 13:31:31 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-02 13:31:31 +0200 |
commit | ff77fdbe29f0cf93f93d6e75ba5ca101e2e321a5 (patch) | |
tree | 197f43619e3efface3093f9a2c0dcbf1b392ff86 /dbaccess | |
parent | 12f933a81d4b036cee5f33f146237b6f5f58c85e (diff) |
Improved loplugin:redundantcast const_cast handling: dbaccess
Change-Id: I7a40549601a9a396c8adec16806b1f76f78734a2
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/dataaccess/ModelImpl.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/JoinController.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/core/dataaccess/ModelImpl.cxx b/dbaccess/source/core/dataaccess/ModelImpl.cxx index 03b15fe59ca9..6146002303ad 100644 --- a/dbaccess/source/core/dataaccess/ModelImpl.cxx +++ b/dbaccess/source/core/dataaccess/ModelImpl.cxx @@ -1297,8 +1297,8 @@ ODatabaseModelImpl::EmbeddedMacros ODatabaseModelImpl::determineEmbeddedMacros() { m_aEmbeddedMacros.reset( eDocumentWideMacros ); } - else if ( lcl_hasObjectsWithMacros_nothrow( const_cast< ODatabaseModelImpl& >( *this ), E_FORM ) - || lcl_hasObjectsWithMacros_nothrow( const_cast< ODatabaseModelImpl& >( *this ), E_REPORT ) + else if ( lcl_hasObjectsWithMacros_nothrow( *this, E_FORM ) + || lcl_hasObjectsWithMacros_nothrow( *this, E_REPORT ) ) { m_aEmbeddedMacros.reset( eSubDocumentMacros ); diff --git a/dbaccess/source/ui/querydesign/JoinController.cxx b/dbaccess/source/ui/querydesign/JoinController.cxx index 0c92646b4ba6..28f72782687f 100644 --- a/dbaccess/source/ui/querydesign/JoinController.cxx +++ b/dbaccess/source/ui/querydesign/JoinController.cxx @@ -116,7 +116,7 @@ bool AddTableDialogContext::allowQueries() const bool AddTableDialogContext::allowAddition() const { - return const_cast< OJoinController& >( m_rController ).getJoinView()->getTableView()->IsAddAllowed(); + return m_rController.getJoinView()->getTableView()->IsAddAllowed(); } void AddTableDialogContext::addTableWindow( const OUString& _rQualifiedTableName, const OUString& _rAliasName ) |