diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-07-08 11:33:17 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-07-08 17:32:24 +0200 |
commit | ae91d60b363a2d7e0f57d090c911137a790d970f (patch) | |
tree | 5d753d44f5e69cf8f3257a902e2bd0bcddfb0a99 /unoxml/source | |
parent | 029cca3f6fbfff3dbaa7bb4fefa53fce3ee3c267 (diff) |
-Werror,-Wlogical-not-parentheses (Clang trunk towards 3.4)
...the apparently mistyped conditions happened to work well for the expected
values of m_aState.
Change-Id: I75f1f4ff8343098be4932c286ddb101d5e913183
Diffstat (limited to 'unoxml/source')
-rw-r--r-- | unoxml/source/dom/saxbuilder.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unoxml/source/dom/saxbuilder.cxx b/unoxml/source/dom/saxbuilder.cxx index 8d2ad2b4f797..75edd9a6c450 100644 --- a/unoxml/source/dom/saxbuilder.cxx +++ b/unoxml/source/dom/saxbuilder.cxx @@ -130,7 +130,7 @@ namespace DOM // start a new document fragment and push it onto the stack // we have to be in a clean state to do this - if (!m_aState == SAXDocumentBuilderState_READY) + if (m_aState != SAXDocumentBuilderState_READY) throw RuntimeException(); m_aDocument = ownerDoc; @@ -164,7 +164,7 @@ namespace DOM // start a new document and push it onto the stack // we have to be in a clean state to do this - if (!m_aState == SAXDocumentBuilderState_READY) + if (m_aState != SAXDocumentBuilderState_READY) throw SAXException(); Reference< XDocumentBuilder > aBuilder(DocumentBuilder::create(comphelper::getComponentContext(m_aServiceManager))); @@ -179,7 +179,7 @@ namespace DOM ::osl::MutexGuard g(m_Mutex); // there should only be the document left on the node stack - if (!m_aState == SAXDocumentBuilderState_BUILDING_DOCUMENT) + if (m_aState != SAXDocumentBuilderState_BUILDING_DOCUMENT) throw SAXException(); Reference< XNode > aNode = m_aNodeStack.top(); |