summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-12-26 18:28:08 +0200
committerTor Lillqvist <tml@collabora.com>2013-12-26 18:28:08 +0200
commitea65158833c292c385e534cdf8b0184cd7ff255e (patch)
tree9dd42ceb9c7bad04d1880f31de8581df37eec242
parent4274e6a9af56e64b1f98e59a96623fabe8d80b94 (diff)
The #ifndef MACOSX can surround even more code
Change-Id: Ia771d36711364bcf53789b3f7a623582451d175d
-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 07fdbaa73397..b958b94de25f 100644
--- a/framework/source/helper/titlebarupdate.cxx
+++ b/framework/source/helper/titlebarupdate.cxx
@@ -141,6 +141,8 @@ void TitleBarUpdate::impl_updateApplicationID(const css::uno::Reference< css::fr
return;
OUString sApplicationID;
+
+#if !defined(MACOSX)
try
{
// SYNCHRONIZED ->
@@ -152,7 +154,6 @@ void TitleBarUpdate::impl_updateApplicationID(const css::uno::Reference< css::fr
css::uno::Reference< css::frame::XModuleManager2 > xModuleManager =
css::frame::ModuleManager::create( xContext );
-#if !defined(MACOSX)
OUString sDesktopName;
OUString aModuleId = xModuleManager->identify(xFrame);
if ( aModuleId == "com.sun.star.text.TextDocument" ||
@@ -186,11 +187,11 @@ void TitleBarUpdate::impl_updateApplicationID(const css::uno::Reference< css::fr
sApplicationID += "-";
sApplicationID += sDesktopName.toAsciiLowerCase();
#endif
-#endif
}
catch(const css::uno::Exception&)
{
}
+#endif
// VCL SYNCHRONIZED ->
SolarMutexGuard aSolarGuard;