summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-08-07 08:08:22 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-08-07 08:08:22 +0200
commit7400dac23a2df7de133398dea1f5f069efd17ffd (patch)
tree0f388b92403359ea3abd16d67416e0641baf3dc6 /framework
parent854add5efd6655279473f7531391a051680be979 (diff)
loplugin:oncevar
Change-Id: I8481404b2763e69752bb418db85530473ccd6b61
Diffstat (limited to 'framework')
-rw-r--r--framework/source/helper/titlebarupdate.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/framework/source/helper/titlebarupdate.cxx b/framework/source/helper/titlebarupdate.cxx
index c6d916a60f19..c69946db813c 100644
--- a/framework/source/helper/titlebarupdate.cxx
+++ b/framework/source/helper/titlebarupdate.cxx
@@ -124,9 +124,8 @@ void TitleBarUpdate::impl_updateApplicationID(const css::uno::Reference< css::fr
if ( ! xWindow.is() )
return;
- OUString sApplicationID;
-
#if !defined(MACOSX)
+ OUString sApplicationID;
try
{
css::uno::Reference< css::frame::XModuleManager2 > xModuleManager =
@@ -158,6 +157,8 @@ void TitleBarUpdate::impl_updateApplicationID(const css::uno::Reference< css::fr
catch(const css::uno::Exception&)
{
}
+#else
+ OUString const sApplicationID;
#endif
// VCL SYNCHRONIZED ->