diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-08-22 09:03:27 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-08-22 09:03:27 +0200 |
commit | 72305ed49d4c9ba968d7bf6d8d5ae564bb92147d (patch) | |
tree | c07be701c815c7b52e325b6f50c6c51113ab8e21 | |
parent | 8c5834d5cb8c1511efc99ea9e22b254a337f9261 (diff) |
Simplify ImplRepository::impl_getLocationForModel return type
Change-Id: I937f96457347195ed18ddcdc75b1106840f0522e
-rw-r--r-- | basic/source/basmgr/basicmanagerrepository.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx index db818adc3ea1..5c102c617a71 100644 --- a/basic/source/basmgr/basicmanagerrepository.cxx +++ b/basic/source/basmgr/basicmanagerrepository.cxx @@ -122,7 +122,7 @@ namespace basic @precond our mutex is locked */ - BasicManager*& + BasicManager* impl_getLocationForModel( const Reference< XModel >& _rxDocumentModel ); /** creates a new BasicManager instance for the given model @@ -247,7 +247,7 @@ namespace basic thus a recursive call of this function will find and return it without creating another instance. */ - BasicManager*& pBasicManager = impl_getLocationForModel( _rxDocumentModel ); + BasicManager* pBasicManager = impl_getLocationForModel( _rxDocumentModel ); if ( pBasicManager == NULL ) impl_createManagerForModel( pBasicManager, _rxDocumentModel ); @@ -378,12 +378,12 @@ namespace basic } - BasicManager*& ImplRepository::impl_getLocationForModel( const Reference< XModel >& _rxDocumentModel ) + BasicManager* ImplRepository::impl_getLocationForModel( const Reference< XModel >& _rxDocumentModel ) { Reference< XInterface > xNormalized( _rxDocumentModel, UNO_QUERY ); DBG_ASSERT( _rxDocumentModel.is(), "ImplRepository::impl_getLocationForModel: invalid model!" ); - BasicManager*& location = m_aStore[ xNormalized ]; + BasicManager* location = m_aStore[ xNormalized ]; return location; } |