diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-08-29 19:34:12 +0200 |
---|---|---|
committer | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-08-31 12:19:05 +0000 |
commit | c53912e526b54f67067861a42ce54ae1e24a92af (patch) | |
tree | 258d8c1d8ecc1c4a3350b38c2da274051cf1e50c /basic | |
parent | 9b0b3d40a2566af279204fa5991f35475fc8210c (diff) |
cppcheck:assertWithSideEffect
Change-Id: Ib3d2bb85c925a4208a9e2f0032857a11258c3bb2
Reviewed-on: https://gerrit.libreoffice.org/28540
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/basmgr/basicmanagerrepository.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx index 02a455527b07..25b71c757333 100644 --- a/basic/source/basmgr/basicmanagerrepository.cxx +++ b/basic/source/basmgr/basicmanagerrepository.cxx @@ -113,7 +113,7 @@ namespace basic @precond our mutex is locked */ - bool impl_hasLocationForModel( const Reference< XModel >& _rxDocumentModel ); + bool impl_hasLocationForModel( const Reference< XModel >& _rxDocumentModel ) const; /** creates a new BasicManager instance for the given model @@ -372,7 +372,7 @@ namespace basic return location; } - bool ImplRepository::impl_hasLocationForModel( const Reference< XModel >& _rxDocumentModel ) + bool ImplRepository::impl_hasLocationForModel( const Reference< XModel >& _rxDocumentModel ) const { Reference< XInterface > xNormalized( _rxDocumentModel, UNO_QUERY ); DBG_ASSERT( _rxDocumentModel.is(), "ImplRepository::impl_getLocationForModel: invalid model!" ); |