From 7400dac23a2df7de133398dea1f5f069efd17ffd Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 7 Aug 2017 08:08:22 +0200 Subject: [PATCH] loplugin:oncevar Change-Id: I8481404b2763e69752bb418db85530473ccd6b61 --- framework/source/helper/titlebarupdate.cxx | 5 +++-- 1 file 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 ->