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

Stephan Bergmann sbergman at redhat.com
Sun Sep 20 12:32:44 PDT 2015


 include/svx/textchain.hxx       |    1 -
 svx/source/svdraw/textchain.cxx |   14 +++++++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)

New commits:
commit 963c35d7cb7272f5c18f812db61c490faa2210b8
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Sun Sep 20 21:32:13 2015 +0200

    loplugin:staticmethods
    
    Change-Id: I2df14df9dd03c23876da57e943e6714f1a52843b

diff --git a/include/svx/textchain.hxx b/include/svx/textchain.hxx
index bcdb47d..4a1dfe7 100644
--- a/include/svx/textchain.hxx
+++ b/include/svx/textchain.hxx
@@ -127,7 +127,6 @@ public:
     //SdrTextObj *GetNextLink(const SdrTextObj *) const;
     //SdrTextObj *GetPrevLink(const SdrTextObj *) const;
 
-    ChainLinkId GetId(const SdrTextObj *) const;
     ImpChainLinkProperties *GetLinkProperties(const SdrTextObj *);
 
     // Specific Link Properties
diff --git a/svx/source/svdraw/textchain.cxx b/svx/source/svdraw/textchain.cxx
index b7146c1..f687309 100644
--- a/svx/source/svdraw/textchain.cxx
+++ b/svx/source/svdraw/textchain.cxx
@@ -49,6 +49,15 @@ TextChain::~TextChain()
     // XXX: Should free all LinkProperties
 }
 
+namespace {
+
+ChainLinkId GetId(const SdrTextObj *pLink)
+{
+    return pLink->GetName();
+}
+
+}
+
 ImpChainLinkProperties *TextChain::GetLinkProperties(const SdrTextObj *pLink)
 {
     // if the guy does not already have properties in the map make them
@@ -60,9 +69,4 @@ ImpChainLinkProperties *TextChain::GetLinkProperties(const SdrTextObj *pLink)
     return maLinkPropertiesMap[aLinkId];
 }
 
-ChainLinkId TextChain::GetId(const SdrTextObj *pLink) const
-{
-    return pLink->GetName();
-}
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list