diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2017-03-18 14:43:01 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2017-03-19 17:12:25 +0100 |
commit | 4a268ebc3f57f4e896bb53b8ca85747895739f24 (patch) | |
tree | 22ba603680aca8773b9d19e3b330f193d315e366 /sfx2 | |
parent | 3563fef9566cdf2828605bcfcb75bd2c9db46c13 (diff) |
Can return const OUString&, here
Thanks to Noel Grandin for his suggestion.
Change-Id: Ia0d9c46c03928e5551e766572c814f4e9ba6f278
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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" ) ) { |