diff options
Diffstat (limited to 'sdext/source/presenter/PresenterComponent.cxx')
-rw-r--r-- | sdext/source/presenter/PresenterComponent.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sdext/source/presenter/PresenterComponent.cxx b/sdext/source/presenter/PresenterComponent.cxx index 581427cf94ac..8032fb03c27a 100644 --- a/sdext/source/presenter/PresenterComponent.cxx +++ b/sdext/source/presenter/PresenterComponent.cxx @@ -44,8 +44,6 @@ using ::rtl::OUString; namespace sdext { namespace presenter { -static OUString gsBasePath; - ::rtl::OUString PresenterComponent::GetBasePath ( const Reference<XComponentContext>& rxComponentContext) { @@ -56,7 +54,8 @@ static OUString gsBasePath; const Reference<XComponentContext>& rxComponentContext, const OUString& rsExtensionIdentifier) { - if (gsBasePath.isEmpty()) + static ::rtl::OUString sBasePath; + if (sBasePath.isEmpty()) { // Determine the base path of the bitmaps. Reference<deployment::XPackageInformationProvider> xInformationProvider ( @@ -68,16 +67,16 @@ static OUString gsBasePath; { try { - gsBasePath = xInformationProvider->getPackageLocation(rsExtensionIdentifier) + sBasePath = xInformationProvider->getPackageLocation(rsExtensionIdentifier) + OUString(RTL_CONSTASCII_USTRINGPARAM("/")); } - catch(deployment::DeploymentException&) + catch (const deployment::DeploymentException&) { } } } - return gsBasePath; + return sBasePath; } rtl_StandardModuleCount g_moduleCount = MODULE_COUNT_INIT; |