summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-12 14:06:28 +0200
committerNoel Grandin <noel@peralex.com>2014-06-17 10:55:17 +0200
commit3e82897353e576dc6e3fbf55371fda5a0c3415df (patch)
tree71c2f03128885000efae1852dccb504f8355c79e /xmlsecurity
parentec95abf2d8afeec38c9225ea49caa0e08d82b504 (diff)
improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/framework/buffernode.cxx8
-rw-r--r--xmlsecurity/source/framework/buffernode.hxx4
-rw-r--r--xmlsecurity/source/xmlsec/saxhelper.cxx8
-rw-r--r--xmlsecurity/source/xmlsec/saxhelper.hxx4
4 files changed, 4 insertions, 20 deletions
diff --git a/xmlsecurity/source/framework/buffernode.cxx b/xmlsecurity/source/framework/buffernode.cxx
index f437e9f98e37..9a5da2042825 100644
--- a/xmlsecurity/source/framework/buffernode.cxx
+++ b/xmlsecurity/source/framework/buffernode.cxx
@@ -520,10 +520,6 @@ sal_Int32 BufferNode::indexOfChild(const BufferNode* pChild) const
return nIndex;
}
-const BufferNode* BufferNode::getParent() const
-{
- return m_pParent;
-}
void BufferNode::setParent(const BufferNode* pParent)
{
@@ -736,10 +732,6 @@ const BufferNode* BufferNode::getNextNodeByTreeOrder() const
return pNextSiblingParent;
}
-cssu::Reference< cssxw::XXMLElementWrapper > BufferNode::getXMLElement() const
-{
- return m_xXMLElement;
-}
void BufferNode::setXMLElement( const cssu::Reference< cssxw::XXMLElementWrapper >& xXMLElement )
{
diff --git a/xmlsecurity/source/framework/buffernode.hxx b/xmlsecurity/source/framework/buffernode.hxx
index db2b2d95c324..18f3bb63a27b 100644
--- a/xmlsecurity/source/framework/buffernode.hxx
+++ b/xmlsecurity/source/framework/buffernode.hxx
@@ -102,14 +102,14 @@ public:
void addChild(const BufferNode* pChild);
void removeChild(const BufferNode* pChild);
sal_Int32 indexOfChild(const BufferNode* pChild) const;
- const BufferNode* getParent() const;
+ const BufferNode* getParent() const { return m_pParent;}
void setParent(const BufferNode* pParent);
const BufferNode* getNextSibling() const;
const BufferNode* isAncestor(const BufferNode* pDescendant) const;
bool isPrevious(const BufferNode* pFollowing) const;
const BufferNode* getNextNodeByTreeOrder() const;
com::sun::star::uno::Reference<
- com::sun::star::xml::wrapper::XXMLElementWrapper > getXMLElement() const;
+ com::sun::star::xml::wrapper::XXMLElementWrapper > getXMLElement() const { return m_xXMLElement;}
void setXMLElement(const com::sun::star::uno::Reference<
com::sun::star::xml::wrapper::XXMLElementWrapper >& xXMLElement);
void notifyBranch();
diff --git a/xmlsecurity/source/xmlsec/saxhelper.cxx b/xmlsecurity/source/xmlsec/saxhelper.cxx
index 8a6447dbe92f..86d5dba09061 100644
--- a/xmlsecurity/source/xmlsec/saxhelper.cxx
+++ b/xmlsecurity/source/xmlsec/saxhelper.cxx
@@ -199,10 +199,6 @@ SAXHelper::~SAXHelper() {
// xmlCleanupParser() ;
}
-xmlNodePtr SAXHelper::getCurrentNode()
-{
- return m_pParserCtxt->node;
-}
void SAXHelper::setCurrentNode(const xmlNodePtr pNode)
{
@@ -217,10 +213,6 @@ void SAXHelper::setCurrentNode(const xmlNodePtr pNode)
= pNode;
}
-xmlDocPtr SAXHelper::getDocument()
-{
- return m_pParserCtxt->myDoc;
-}
/**
* XDocumentHandler -- start an xml document
diff --git a/xmlsecurity/source/xmlsec/saxhelper.hxx b/xmlsecurity/source/xmlsec/saxhelper.hxx
index bce17797d0ae..8ed3e6e6bc16 100644
--- a/xmlsecurity/source/xmlsec/saxhelper.hxx
+++ b/xmlsecurity/source/xmlsec/saxhelper.hxx
@@ -41,9 +41,9 @@ class SAXHelper
SAXHelper( ) ;
virtual ~SAXHelper() ;
- xmlNodePtr getCurrentNode();
+ xmlNodePtr getCurrentNode() { return m_pParserCtxt->node;}
void setCurrentNode(const xmlNodePtr pNode);
- xmlDocPtr getDocument();
+ xmlDocPtr getDocument() { return m_pParserCtxt->myDoc;}
void startDocument( void )
throw( ::com::sun::star::xml::sax::SAXException , ::com::sun::star::uno::RuntimeException ) ;