summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-26 12:57:21 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-26 12:57:21 +0100
commita9a4bd141ae4edb162dd96ed9b295907def6c31f (patch)
treea97e171abd5ea8c52479a48187f5f567e4d76d08
parent88d981af4aeb3a3027ab6c47ba5f8dc7467019cf (diff)
micro optimization
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index f2034824c7..1214c3ca54 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -134,10 +134,6 @@
#include <sfxresid.hxx>
//________________________________________________________________________________________________________
-// const
-static const ::rtl::OUString SERVICENAME_DESKTOP = ::rtl::OUString::createFromAscii ("com.sun.star.frame.Desktop");
-
-//________________________________________________________________________________________________________
// namespaces
//________________________________________________________________________________________________________
@@ -3646,6 +3642,7 @@ css::uno::Reference< css::frame::XTitle > SfxBaseModel::impl_getTitleHelper ()
if ( ! m_pData->m_xTitleHelper.is ())
{
css::uno::Reference< css::lang::XMultiServiceFactory > xSMGR = ::comphelper::getProcessServiceFactory ();
+ static const ::rtl::OUString SERVICENAME_DESKTOP(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.Desktop"));
css::uno::Reference< css::frame::XUntitledNumbers > xDesktop(xSMGR->createInstance(SERVICENAME_DESKTOP), css::uno::UNO_QUERY_THROW);
css::uno::Reference< css::frame::XModel > xThis (static_cast< css::frame::XModel* >(this), css::uno::UNO_QUERY_THROW);