diff options
-rw-r--r-- | include/sfx2/docfac.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/sfx2/docfac.hxx b/include/sfx2/docfac.hxx index f1b73f424281..6cd70b86f586 100644 --- a/include/sfx2/docfac.hxx +++ b/include/sfx2/docfac.hxx @@ -54,7 +54,7 @@ public: const SvGlobalName& GetClassId() const; SfxObjectShellFlags GetFlags() { return nFlags; } OUString GetFactoryURL() const; // shortcut for "private:factory/GetShortName()" - OUString GetFactoryName() const { return m_sFactoryName; } + const OUString& GetFactoryName() const { return m_sFactoryName; } OUString GetModuleName() const; SfxFilterContainer *GetFilterContainer() const; diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 1ddcaf90e5dc..384af9dfe478 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -2774,7 +2774,7 @@ void SfxViewFrame::MiscState_Impl(SfxItemSet &rSet) case SID_RECORDMACRO : { SvtMiscOptions aMiscOptions; - const OUString sName{GetObjectShell()->GetFactory().GetFactoryName()}; + const OUString& sName{GetObjectShell()->GetFactory().GetFactoryName()}; if ( !aMiscOptions.IsMacroRecorderMode() || ( sName!="swriter" && sName!="scalc" ) ) { @@ -2800,7 +2800,7 @@ void SfxViewFrame::MiscState_Impl(SfxItemSet &rSet) case SID_STOP_RECORDING : { SvtMiscOptions aMiscOptions; - const OUString sName{GetObjectShell()->GetFactory().GetFactoryName()}; + const OUString& sName{GetObjectShell()->GetFactory().GetFactoryName()}; if ( !aMiscOptions.IsMacroRecorderMode() || ( sName!="swriter" && sName!="scalc" ) ) { |