diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2017-03-17 15:13:41 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2017-03-17 22:12:48 +0000 |
commit | 2cdca5d32e0b2d1efb9241e4e03e15b20f28363b (patch) | |
tree | d4976ca852084f03b013410902f4ee2db5a6d415 /include/sfx2 | |
parent | 376ae93f488baab2957713f4fea72a42c91febf4 (diff) |
SfxObjectFactory: directly store factory name as OUString
Change-Id: I0779be1e4b344124514115c6645394d26ac09c36
Reviewed-on: https://gerrit.libreoffice.org/35375
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/docfac.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sfx2/docfac.hxx b/include/sfx2/docfac.hxx index 2658eaa07e6c..f1b73f424281 100644 --- a/include/sfx2/docfac.hxx +++ b/include/sfx2/docfac.hxx @@ -43,18 +43,18 @@ typedef void (*SfxVoidFunc)(); class SFX2_DLLPUBLIC SfxObjectFactory { private: - const char* pShortName; + const OUString m_sFactoryName; std::unique_ptr<SfxObjectFactory_Impl> pImpl; // Additional Data SfxObjectShellFlags nFlags; public: - SfxObjectFactory( const SvGlobalName &rName, SfxObjectShellFlags nFlags, const char* pShortName ); + SfxObjectFactory( const SvGlobalName &rName, SfxObjectShellFlags nFlags, const OUString& sFactoryName ); ~SfxObjectFactory(); const SvGlobalName& GetClassId() const; SfxObjectShellFlags GetFlags() { return nFlags; } OUString GetFactoryURL() const; // shortcut for "private:factory/GetShortName()" - OUString GetFactoryName() const { return OUString::createFromAscii(pShortName); } + OUString GetFactoryName() const { return m_sFactoryName; } OUString GetModuleName() const; SfxFilterContainer *GetFilterContainer() const; |