[Libreoffice-commits] core.git: store/source

Thomas Arnhold thomas at arnhold.org
Thu Aug 14 00:09:35 PDT 2014


 store/source/stortree.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit a7d21497094f0320916d4f6f99af1439ad2c3eaf
Author: Thomas Arnhold <thomas at arnhold.org>
Date:   Thu Aug 14 09:07:27 2014 +0200

    warning C4189: : local variable is initialized but not referenced
    
    Change-Id: I650fab8227fd8b6aeb4fd4d420cb820aefd80271

diff --git a/store/source/stortree.cxx b/store/source/stortree.cxx
index 8e91cf0..5e96a6e 100644
--- a/store/source/stortree.cxx
+++ b/store/source/stortree.cxx
@@ -297,8 +297,7 @@ storeError OStoreBTreeNodeObject::remove (
 void OStoreBTreeRootObject::testInvariant (char const * message)
 {
     OSL_PRECOND(m_xPage.get() != 0, "OStoreBTreeRootObject::testInvariant(): Null pointer");
-    bool result = ((m_xPage->location() - m_xPage->size()) == 0);
-    SAL_WARN_IF( !result, "store", message);
+    SAL_WARN_IF( (m_xPage->location() - m_xPage->size()) != 0, "store", message);
 }
 
 /*


More information about the Libreoffice-commits mailing list