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 ->