diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-24 09:23:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-24 18:14:23 +0200 |
commit | c7799d71899c121334855c3234a9492687803b59 (patch) | |
tree | 3eeb29d4c1eec9de938f61da5d61237c7827f503 | |
parent | loplugin:returnconstval in connectivity..cui (diff) | |
download | core-c7799d71899c121334855c3234a9492687803b59.tar.gz core-c7799d71899c121334855c3234a9492687803b59.zip |
loplugin:returnconstval in svl
Change-Id: I55371fde92204e6405e74fb8deecbaf14707a312
Reviewed-on: https://gerrit.libreoffice.org/78053
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | include/svl/svdde.hxx | 4 | ||||
-rw-r--r-- | svl/source/items/stylepool.cxx | 4 | ||||
-rw-r--r-- | svl/source/svdde/ddesvr.cxx | 4 | ||||
-rw-r--r-- | svl/unx/source/svdde/ddedummy.cxx | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/include/svl/svdde.hxx b/include/svl/svdde.hxx index 07b5bcfd9f73..10f6ec8f17a2 100644 --- a/include/svl/svdde.hxx +++ b/include/svl/svdde.hxx @@ -257,7 +257,7 @@ public: DdeTopic( SAL_UNUSED_PARAMETER const OUString& ); virtual ~DdeTopic(); - const OUString GetName() const; + OUString GetName() const; void NotifyClient( const OUString& ); bool IsSystemTopic(); @@ -302,7 +302,7 @@ public: DdeService( const DdeService& ) = delete; DdeService& operator= ( const DdeService& ) = delete; - const OUString GetName() const; + OUString GetName() const; short GetError() const { return nStatus; } static DdeServices& GetServices(); diff --git a/svl/source/items/stylepool.cxx b/svl/source/items/stylepool.cxx index 14f30f35b26a..6471212c7ff4 100644 --- a/svl/source/items/stylepool.cxx +++ b/svl/source/items/stylepool.cxx @@ -74,7 +74,7 @@ namespace { const bool bSkipIgnorable ); // #i86923# bool hasIgnorableChildren( const bool bCheckUsage ) const; - const std::shared_ptr<SfxItemSet> getItemSetOfIgnorableChild( + std::shared_ptr<SfxItemSet> getItemSetOfIgnorableChild( const bool bSkipUnusedItemSets ) const; }; @@ -205,7 +205,7 @@ namespace { }); } - const std::shared_ptr<SfxItemSet> Node::getItemSetOfIgnorableChild( + std::shared_ptr<SfxItemSet> Node::getItemSetOfIgnorableChild( const bool bSkipUnusedItemSets ) const { DBG_ASSERT( hasIgnorableChildren( bSkipUnusedItemSets ), diff --git a/svl/source/svdde/ddesvr.cxx b/svl/source/svdde/ddesvr.cxx index d64df8742259..4fffb473674e 100644 --- a/svl/source/svdde/ddesvr.cxx +++ b/svl/source/svdde/ddesvr.cxx @@ -451,7 +451,7 @@ DdeService::~DdeService() } } -const OUString DdeService::GetName() const +OUString DdeService::GetName() const { return pName->toOUString(); } @@ -534,7 +534,7 @@ DdeTopic::~DdeTopic() delete pName; } -const OUString DdeTopic::GetName() const +OUString DdeTopic::GetName() const { return pName->toOUString(); } diff --git a/svl/unx/source/svdde/ddedummy.cxx b/svl/unx/source/svdde/ddedummy.cxx index 2e633f895722..613bfe4ab471 100644 --- a/svl/unx/source/svdde/ddedummy.cxx +++ b/svl/unx/source/svdde/ddedummy.cxx @@ -197,7 +197,7 @@ bool DdeTopic::Put( SAL_UNUSED_PARAMETER const DdeData* ) return false; } -const OUString DdeTopic::GetName() const +OUString DdeTopic::GetName() const { return OUString(); } @@ -244,7 +244,7 @@ void DdeService::RemoveTopic( SAL_UNUSED_PARAMETER const DdeTopic& ) { } -const OUString DdeService::GetName() const +OUString DdeService::GetName() const { return OUString(); } |