From c7799d71899c121334855c3234a9492687803b59 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 24 Aug 2019 09:23:54 +0200 Subject: loplugin:returnconstval in svl Change-Id: I55371fde92204e6405e74fb8deecbaf14707a312 Reviewed-on: https://gerrit.libreoffice.org/78053 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svl/source/items/stylepool.cxx | 4 ++-- svl/source/svdde/ddesvr.cxx | 4 ++-- svl/unx/source/svdde/ddedummy.cxx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'svl') 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 getItemSetOfIgnorableChild( + std::shared_ptr getItemSetOfIgnorableChild( const bool bSkipUnusedItemSets ) const; }; @@ -205,7 +205,7 @@ namespace { }); } - const std::shared_ptr Node::getItemSetOfIgnorableChild( + std::shared_ptr 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(); } -- cgit