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 /include/sfx2 | |
parent | 3563fef9566cdf2828605bcfcb75bd2c9db46c13 (diff) |
Can return const OUString&, here
Thanks to Noel Grandin for his suggestion.
Change-Id: Ia0d9c46c03928e5551e766572c814f4e9ba6f278
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/docfac.hxx | 2 |
1 files changed, 1 insertions, 1 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; |