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 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'svl/source') 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(); } -- cgit