summaryrefslogtreecommitdiff
path: root/chart2/source/tools/ResourceManager.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-02-07 12:08:44 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-02-07 12:35:56 +0100
commit5b736d96ba96d9b40a90188b334c6014d349bdf6 (patch)
tree526490cc182fc6f99ce437a6cc5b8bd10c78b416 /chart2/source/tools/ResourceManager.cxx
parent5272bfb329e828092de0f49bebdf9a8ce2a40c5b (diff)
loplugin:deletedspecial
Change-Id: Ifdbeea8d4e49ae38b843675758fcc29aee974bdf
Diffstat (limited to 'chart2/source/tools/ResourceManager.cxx')
-rw-r--r--chart2/source/tools/ResourceManager.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/chart2/source/tools/ResourceManager.cxx b/chart2/source/tools/ResourceManager.cxx
index 5016e14bef63..42dbcbeee944 100644
--- a/chart2/source/tools/ResourceManager.cxx
+++ b/chart2/source/tools/ResourceManager.cxx
@@ -24,15 +24,14 @@
namespace chart
{
-ResMgr * ResourceManager::m_pResourceManager = 0;
-
ResMgr & ResourceManager::getResourceManager()
{
// not threadsafe
- if( ! m_pResourceManager )
- m_pResourceManager = ResMgr::CreateResMgr("chartcontroller");
- OSL_ASSERT( m_pResourceManager );
- return *m_pResourceManager;
+ static ResMgr * pResourceManager = 0;
+ if( ! pResourceManager )
+ pResourceManager = ResMgr::CreateResMgr("chartcontroller");
+ OSL_ASSERT( pResourceManager );
+ return *pResourceManager;
}
} // namespace chart