[Libreoffice-commits] core.git: include/svl svl/source svl/unx

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Sat Aug 24 16:15:38 UTC 2019


 include/svl/svdde.hxx             |    4 ++--
 svl/source/items/stylepool.cxx    |    4 ++--
 svl/source/svdde/ddesvr.cxx       |    4 ++--
 svl/unx/source/svdde/ddedummy.cxx |    4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

New commits:
commit c7799d71899c121334855c3234a9492687803b59
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Sat Aug 24 09:23:54 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sat Aug 24 18:14:23 2019 +0200

    loplugin:returnconstval in svl
    
    Change-Id: I55371fde92204e6405e74fb8deecbaf14707a312
    Reviewed-on: https://gerrit.libreoffice.org/78053
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

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();
 }


More information about the Libreoffice-commits mailing list