summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/framework
diff options
context:
space:
mode:
authorPhilipp Hofer <philipp.hofer@protonmail.com>2020-11-12 13:08:26 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-11-19 19:27:01 +0100
commit15d080d2ca19891187a547f66d77183ebed0811b (patch)
tree10d57f1d01985f36c847c4aad0b5e4cfb797bda4 /xmlsecurity/source/framework
parentc927d6daa9a6403c53cc41b1ab4dde820f08f387 (diff)
tdf#123936 Formatting files in module xmlsecurity with clang-format
Change-Id: I25c8d1a3c706f1ba7565a5f018b9660faf63ffaf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105734 Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'xmlsecurity/source/framework')
-rw-r--r--xmlsecurity/source/framework/buffernode.hxx34
-rw-r--r--xmlsecurity/source/framework/elementmark.hxx10
2 files changed, 25 insertions, 19 deletions
diff --git a/xmlsecurity/source/framework/buffernode.hxx b/xmlsecurity/source/framework/buffernode.hxx
index e3cabd97e955..17fd4302f7ad 100644
--- a/xmlsecurity/source/framework/buffernode.hxx
+++ b/xmlsecurity/source/framework/buffernode.hxx
@@ -25,7 +25,10 @@
#include <memory>
#include <vector>
-namespace com::sun::star::xml::wrapper { class XXMLElementWrapper; }
+namespace com::sun::star::xml::wrapper
+{
+class XXMLElementWrapper;
+}
class ElementMark;
class ElementCollector;
@@ -51,10 +54,10 @@ private:
BufferNode* m_pParent;
/* all child BufferNodes */
- std::vector< std::unique_ptr<BufferNode> > m_vChildren;
+ std::vector<std::unique_ptr<BufferNode>> m_vChildren;
/* all ElementCollector holding this BufferNode */
- std::vector< const ElementCollector* > m_vElementCollectors;
+ std::vector<const ElementCollector*> m_vElementCollectors;
/*
* the blocker holding this BufferNode, one BufferNode can have one
@@ -69,7 +72,7 @@ private:
bool m_bAllReceived;
/* the XMLElementWrapper of the buffered element */
- css::uno::Reference< css::xml::wrapper::XXMLElementWrapper > m_xXMLElement;
+ css::uno::Reference<css::xml::wrapper::XXMLElementWrapper> m_xXMLElement;
private:
bool isECInSubTreeIncluded(sal_Int32 nIgnoredSecurityId) const;
@@ -79,34 +82,37 @@ private:
public:
explicit BufferNode(
- const css::uno::Reference< css::xml::wrapper::XXMLElementWrapper >& xXMLElement);
+ const css::uno::Reference<css::xml::wrapper::XXMLElementWrapper>& xXMLElement);
bool isECOfBeforeModifyIncluded(sal_Int32 nIgnoredSecurityId) const;
- void setReceivedAll();
- bool isAllReceived() const { return m_bAllReceived;}
+ void setReceivedAll();
+ bool isAllReceived() const { return m_bAllReceived; }
void addElementCollector(const ElementCollector* pElementCollector);
void removeElementCollector(const ElementCollector* pElementCollector);
- ElementMark* getBlocker() const { return m_pBlocker;}
+ ElementMark* getBlocker() const { return m_pBlocker; }
void setBlocker(const ElementMark* pBlocker);
OUString printChildren() const;
bool hasAnything() const;
bool hasChildren() const;
- std::vector< std::unique_ptr< BufferNode> > const & getChildren() const;
- std::vector< std::unique_ptr< BufferNode> > releaseChildren();
+ std::vector<std::unique_ptr<BufferNode>> const& getChildren() const;
+ std::vector<std::unique_ptr<BufferNode>> releaseChildren();
const BufferNode* getFirstChild() const;
void addChild(std::unique_ptr<BufferNode> pChild, sal_Int32 nPosition);
void addChild(std::unique_ptr<BufferNode> pChild);
void removeChild(const BufferNode* pChild);
sal_Int32 indexOfChild(const BufferNode* pChild) const;
- const BufferNode* getParent() const { return m_pParent;}
+ 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;
- const css::uno::Reference< css::xml::wrapper::XXMLElementWrapper >& getXMLElement() const { return m_xXMLElement;}
- void setXMLElement(const css::uno::Reference<
- css::xml::wrapper::XXMLElementWrapper >& xXMLElement);
+ const css::uno::Reference<css::xml::wrapper::XXMLElementWrapper>& getXMLElement() const
+ {
+ return m_xXMLElement;
+ }
+ void
+ setXMLElement(const css::uno::Reference<css::xml::wrapper::XXMLElementWrapper>& xXMLElement);
void notifyBranch();
void elementCollectorNotify();
};
diff --git a/xmlsecurity/source/framework/elementmark.hxx b/xmlsecurity/source/framework/elementmark.hxx
index e035cc1a58c8..a353b15c2832 100644
--- a/xmlsecurity/source/framework/elementmark.hxx
+++ b/xmlsecurity/source/framework/elementmark.hxx
@@ -55,14 +55,14 @@ protected:
public:
ElementMark(sal_Int32 nSecurityId, sal_Int32 nBufferId);
- virtual ~ElementMark() {};
+ virtual ~ElementMark(){};
- BufferNode* getBufferNode() const { return m_pBufferNode;}
+ BufferNode* getBufferNode() const { return m_pBufferNode; }
void setBufferNode(const BufferNode* pBufferNode);
- sal_Int32 getSecurityId() const { return m_nSecurityId;}
+ sal_Int32 getSecurityId() const { return m_nSecurityId; }
void setSecurityId(sal_Int32 nSecurityId);
- css::xml::crypto::sax::ElementMarkType getType() const { return m_type;}
- sal_Int32 getBufferId() const { return m_nBufferId;}
+ css::xml::crypto::sax::ElementMarkType getType() const { return m_type; }
+ sal_Int32 getBufferId() const { return m_nBufferId; }
};
#endif