From ac8cb02cfdeef48dac0baa6646253170d1e1f2c9 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 1 Oct 2019 14:00:28 +0200 Subject: loplugin:returnconstval (clang-cl) Change-Id: Id1bcc878f40fba804f78f7a5b7cd463db8dc5988 Reviewed-on: https://gerrit.libreoffice.org/79957 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- shell/source/win32/ooofilereader/autostyletag.hxx | 2 +- shell/source/win32/ooofilereader/dummytag.hxx | 2 +- shell/source/win32/ooofilereader/itag.hxx | 2 +- shell/source/win32/ooofilereader/keywordstag.hxx | 2 +- shell/source/win32/ooofilereader/simpletag.cxx | 2 +- shell/source/win32/ooofilereader/simpletag.hxx | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'shell/source') diff --git a/shell/source/win32/ooofilereader/autostyletag.hxx b/shell/source/win32/ooofilereader/autostyletag.hxx index b1a5cfb546f1..2bfe4f8f4d20 100644 --- a/shell/source/win32/ooofilereader/autostyletag.hxx +++ b/shell/source/win32/ooofilereader/autostyletag.hxx @@ -45,7 +45,7 @@ class CAutoStyleTag : public ITag virtual void addCharacters(const std::wstring& characters) override; virtual void addAttributes(const XmlTagAttributes_t& attributes) override; virtual std::wstring getTagContent() override { return EMPTY_STRING; }; - virtual ::std::wstring const getTagAttribute( ::std::wstring const & /*attrname*/ ) override { return ::std::wstring() ; } + virtual ::std::wstring getTagAttribute( ::std::wstring const & /*attrname*/ ) override { return ::std::wstring() ; } void setStyle( ::std::wstring const & Style ); void setLocale(const LocaleSet_t& Locale); diff --git a/shell/source/win32/ooofilereader/dummytag.hxx b/shell/source/win32/ooofilereader/dummytag.hxx index ca16b5503e33..8af406d35d27 100644 --- a/shell/source/win32/ooofilereader/dummytag.hxx +++ b/shell/source/win32/ooofilereader/dummytag.hxx @@ -46,7 +46,7 @@ class CDummyTag : public ITag return EMPTY_STRING; }; - virtual ::std::wstring const getTagAttribute( ::std::wstring const & /*attrname*/ ) override { return ::std::wstring(EMPTY_STRING); }; + virtual ::std::wstring getTagAttribute( ::std::wstring const & /*attrname*/ ) override { return ::std::wstring(EMPTY_STRING); }; }; diff --git a/shell/source/win32/ooofilereader/itag.hxx b/shell/source/win32/ooofilereader/itag.hxx index 841771818257..64a3f8bd7e79 100644 --- a/shell/source/win32/ooofilereader/itag.hxx +++ b/shell/source/win32/ooofilereader/itag.hxx @@ -38,7 +38,7 @@ class ITag virtual void addCharacters(const std::wstring& characters) = 0; virtual void addAttributes(const XmlTagAttributes_t& attributes) = 0; virtual ::std::wstring getTagContent() = 0; - virtual ::std::wstring const getTagAttribute( ::std::wstring const & attrname ) = 0; + virtual ::std::wstring getTagAttribute( ::std::wstring const & attrname ) = 0; }; #endif diff --git a/shell/source/win32/ooofilereader/keywordstag.hxx b/shell/source/win32/ooofilereader/keywordstag.hxx index 3fb5372c47eb..2ec3de1cf1c5 100644 --- a/shell/source/win32/ooofilereader/keywordstag.hxx +++ b/shell/source/win32/ooofilereader/keywordstag.hxx @@ -36,7 +36,7 @@ class CKeywordsTag : public ITag virtual void addCharacters(const std::wstring& characters) override; virtual void addAttributes(const XmlTagAttributes_t& attributes) override; virtual std::wstring getTagContent() override; - virtual ::std::wstring const getTagAttribute( ::std::wstring const & /*attrname*/ ) override { return ::std::wstring(); }; + virtual ::std::wstring getTagAttribute( ::std::wstring const & /*attrname*/ ) override { return ::std::wstring(); }; private: std::vector m_slKeywords; diff --git a/shell/source/win32/ooofilereader/simpletag.cxx b/shell/source/win32/ooofilereader/simpletag.cxx index 717437bfdb11..82b85aec5ce3 100644 --- a/shell/source/win32/ooofilereader/simpletag.cxx +++ b/shell/source/win32/ooofilereader/simpletag.cxx @@ -46,7 +46,7 @@ std::wstring CSimpleTag::getTagContent( ) return m_SimpleContent; } -::std::wstring const CSimpleTag::getTagAttribute( ::std::wstring const & attrname ) +::std::wstring CSimpleTag::getTagAttribute( ::std::wstring const & attrname ) { if ( m_SimpleAttributes.find(attrname) != m_SimpleAttributes.end()) return m_SimpleAttributes[attrname]; diff --git a/shell/source/win32/ooofilereader/simpletag.hxx b/shell/source/win32/ooofilereader/simpletag.hxx index 5f167681ec4d..4d878fc483d3 100644 --- a/shell/source/win32/ooofilereader/simpletag.hxx +++ b/shell/source/win32/ooofilereader/simpletag.hxx @@ -40,7 +40,7 @@ class CSimpleTag : public ITag virtual void addAttributes(const XmlTagAttributes_t& attributes) override; virtual std::wstring getTagContent() override; - virtual ::std::wstring const getTagAttribute( ::std::wstring const & attrname ) override; + virtual ::std::wstring getTagAttribute( ::std::wstring const & attrname ) override; private: std::wstring m_SimpleContent; -- cgit v1.2.3