The #ifndef MACOSX can surround even more code

Change-Id: Ia771d36711364bcf53789b3f7a623582451d175d
diff --git a/framework/source/helper/titlebarupdate.cxx b/framework/source/helper/titlebarupdate.cxx
index 07fdbaa..b958b94 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;