Kaydet (Commit) 963c35d7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:staticmethods

Change-Id: I2df14df9dd03c23876da57e943e6714f1a52843b
üst b7e28109
...@@ -127,7 +127,6 @@ public: ...@@ -127,7 +127,6 @@ public:
//SdrTextObj *GetNextLink(const SdrTextObj *) const; //SdrTextObj *GetNextLink(const SdrTextObj *) const;
//SdrTextObj *GetPrevLink(const SdrTextObj *) const; //SdrTextObj *GetPrevLink(const SdrTextObj *) const;
ChainLinkId GetId(const SdrTextObj *) const;
ImpChainLinkProperties *GetLinkProperties(const SdrTextObj *); ImpChainLinkProperties *GetLinkProperties(const SdrTextObj *);
// Specific Link Properties // Specific Link Properties
......
...@@ -49,6 +49,15 @@ TextChain::~TextChain() ...@@ -49,6 +49,15 @@ TextChain::~TextChain()
// XXX: Should free all LinkProperties // XXX: Should free all LinkProperties
} }
namespace {
ChainLinkId GetId(const SdrTextObj *pLink)
{
return pLink->GetName();
}
}
ImpChainLinkProperties *TextChain::GetLinkProperties(const SdrTextObj *pLink) ImpChainLinkProperties *TextChain::GetLinkProperties(const SdrTextObj *pLink)
{ {
// if the guy does not already have properties in the map make them // if the guy does not already have properties in the map make them
...@@ -60,9 +69,4 @@ ImpChainLinkProperties *TextChain::GetLinkProperties(const SdrTextObj *pLink) ...@@ -60,9 +69,4 @@ ImpChainLinkProperties *TextChain::GetLinkProperties(const SdrTextObj *pLink)
return maLinkPropertiesMap[aLinkId]; return maLinkPropertiesMap[aLinkId];
} }
ChainLinkId TextChain::GetId(const SdrTextObj *pLink) const
{
return pLink->GetName();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment