diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-06-01 14:45:23 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-06-01 14:47:00 +0100 |
commit | d369d4fac79ceea879c626df4d4ee3e290dfe8fa (patch) | |
tree | 170095cc0c5d9547261120ef0685c77d208b6dfd /xmlsecurity | |
parent | a77d16835504b4f82b6b9e59c213eea8a879219c (diff) |
targetted revert of small stl empty optimisation
Change-Id: I5e845235f946f33f2a38839c8bd7bb6efda64147
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/framework/buffernode.cxx | 8 | ||||
-rw-r--r-- | xmlsecurity/source/framework/saxeventkeeperimpl.cxx | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/xmlsecurity/source/framework/buffernode.cxx b/xmlsecurity/source/framework/buffernode.cxx index a6de3ca2d182..a7c0a24f33df 100644 --- a/xmlsecurity/source/framework/buffernode.cxx +++ b/xmlsecurity/source/framework/buffernode.cxx @@ -317,7 +317,7 @@ bool BufferNode::hasAnything() const * Email: michael.mi@sun.com ******************************************************************************/ { - return (m_pBlocker != NULL || !m_vElementCollectors.empty()); + return (m_pBlocker != NULL || m_vElementCollectors.size() > 0); } bool BufferNode::hasChildren() const @@ -344,7 +344,7 @@ bool BufferNode::hasChildren() const * Email: michael.mi@sun.com ******************************************************************************/ { - return (!m_vChildren.empty()); + return (m_vChildren.size() > 0); } std::vector< const BufferNode* >* BufferNode::getChildren() const @@ -378,7 +378,7 @@ const BufferNode* BufferNode::getFirstChild() const { BufferNode* rc = NULL; - if (!m_vChildren.empty()) + if (m_vChildren.size() > 0) { rc = (BufferNode*)m_vChildren.front(); } @@ -853,7 +853,7 @@ void BufferNode::elementCollectorNotify() * Email: michael.mi@sun.com ******************************************************************************/ { - if (!m_vElementCollectors.empty()) + if (m_vElementCollectors.size()>0) { cssxc::sax::ElementMarkPriority nMaxPriority = cssxc::sax::ElementMarkPriority_MINIMUM; cssxc::sax::ElementMarkPriority nPriority; diff --git a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx index 015f802b0d6e..c416d383e591 100644 --- a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx +++ b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx @@ -161,7 +161,7 @@ BufferNode* SAXEventKeeperImpl::addNewElementMarkBuffers() { BufferNode* pBufferNode = NULL; - if ( (!m_vNewElementCollectors.empty()) || + if ( (m_vNewElementCollectors.size()>0) || (m_pNewBlocker != NULL)) { /* @@ -202,7 +202,7 @@ BufferNode* SAXEventKeeperImpl::addNewElementMarkBuffers() m_pNewBlocker = NULL; } - if (!m_vNewElementCollectors.empty()) + if (m_vNewElementCollectors.size()>0) { std::vector< const ElementCollector* >::const_iterator ii = m_vNewElementCollectors.begin(); @@ -713,7 +713,7 @@ void SAXEventKeeperImpl::releaseElementMarkBuffer() ******************************************************************************/ { m_bIsReleasing = true; - while (!m_vReleasedElementMarkBuffers.empty()) + while (m_vReleasedElementMarkBuffers.size()>0) { std::vector< sal_Int32 >::iterator pId = m_vReleasedElementMarkBuffers.begin(); sal_Int32 nId = *pId; |