From bc50aa40f9ad790c7a9afc1dd9059ac0755be3fe Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 23 Aug 2019 16:41:17 +0200 Subject: loplugin:returnconstval in xmloff Change-Id: I200080ff1c44544fdb8211e58228fd62465f3732 Reviewed-on: https://gerrit.libreoffice.org/78020 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/xmloff/xmlcnimp.hxx | 4 ++-- include/xmloff/xmlimp.hxx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'include/xmloff') diff --git a/include/xmloff/xmlcnimp.hxx b/include/xmloff/xmlcnimp.hxx index 338a48f753ac..c987e9943138 100644 --- a/include/xmloff/xmlcnimp.hxx +++ b/include/xmloff/xmlcnimp.hxx @@ -47,8 +47,8 @@ public: const OUString& rValue ); size_t GetAttrCount() const; - const OUString GetAttrNamespace( size_t i ) const; - const OUString GetAttrPrefix( size_t i ) const; + OUString GetAttrNamespace( size_t i ) const; + OUString GetAttrPrefix( size_t i ) const; const OUString& GetAttrLName( size_t i ) const; const OUString& GetAttrValue( size_t i ) const; diff --git a/include/xmloff/xmlimp.hxx b/include/xmloff/xmlimp.hxx index 33ab9dab9d68..9713f720f08a 100644 --- a/include/xmloff/xmlimp.hxx +++ b/include/xmloff/xmlimp.hxx @@ -376,10 +376,10 @@ public: // get import helper for events XMLEventImportHelper& GetEventImport(); - static const OUString getNameFromToken( sal_Int32 nToken ); - static const OUString getNamespacePrefixFromToken(sal_Int32 nToken, const SvXMLNamespaceMap* pMap); - static const OUString getNamespaceURIFromToken( sal_Int32 nToken ); - static const OUString getNamespacePrefixFromURI( const OUString& rURI ); + static OUString getNameFromToken( sal_Int32 nToken ); + static OUString getNamespacePrefixFromToken(sal_Int32 nToken, const SvXMLNamespaceMap* pMap); + static OUString getNamespaceURIFromToken( sal_Int32 nToken ); + static OUString getNamespacePrefixFromURI( const OUString& rURI ); SvXMLNamespaceMap& GetNamespaceMap() { return *mpNamespaceMap; } const SvXMLNamespaceMap& GetNamespaceMap() const { return *mpNamespaceMap; } -- cgit