[Libreoffice-commits] core.git: basic/source
Tor Lillqvist
tml at collabora.com
Thu Feb 9 10:48:35 UTC 2017
basic/source/basmgr/basicmanagerrepository.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit b21ba53be7e598de9c054d16aae8426301d1dbba
Author: Tor Lillqvist <tml at collabora.com>
Date: Thu Feb 9 12:37:42 2017 +0200
loplugin:staticmethods
Change-Id: I46d24d74e48806368f1726688747f0872100c438
diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx
index 9635fb2..8a6032f 100644
--- a/basic/source/basmgr/basicmanagerrepository.cxx
+++ b/basic/source/basmgr/basicmanagerrepository.cxx
@@ -82,8 +82,8 @@ namespace basic
BasicManager* getDocumentBasicManager( const Reference< XModel >& _rxDocumentModel );
BasicManager* getOrCreateApplicationBasicManager();
- BasicManager* getApplicationBasicManager() const;
- void setApplicationBasicManager( BasicManager* _pBasicManager );
+ static BasicManager* getApplicationBasicManager();
+ static void setApplicationBasicManager( BasicManager* _pBasicManager );
void registerCreationListener( BasicManagerCreationListener& _rListener );
void revokeCreationListener( BasicManagerCreationListener& _rListener );
@@ -247,7 +247,7 @@ namespace basic
return pAppManager;
}
- BasicManager* ImplRepository::getApplicationBasicManager() const
+ BasicManager* ImplRepository::getApplicationBasicManager()
{
SolarMutexGuard g;
@@ -617,7 +617,7 @@ namespace basic
void BasicManagerRepository::resetApplicationBasicManager()
{
- ImplRepository::Instance().setApplicationBasicManager( nullptr );
+ ImplRepository::setApplicationBasicManager( nullptr );
}
void BasicManagerRepository::registerCreationListener( BasicManagerCreationListener& _rListener )
More information about the Libreoffice-commits
mailing list