Hello,

Cppcheck detected this :
core/jvmfwk/source/elements.cxx
127 assignBoolToPointer error Assigning bool value to pointer (converting bool value to address)

Here is a simple patch :

diff --git a/jvmfwk/source/elements.cxx b/jvmfwk/source/elements.cxx
index bb5cf62..b54e380 100644
--- a/jvmfwk/source/elements.cxx
+++ b/jvmfwk/source/elements.cxx
@@ -124,7 +124,7 @@ void createSettingsStructure(xmlDoc * document, bool * bNeedsSave)
     }
     if (bFound)
     {
-        bNeedsSave = false;
+        *bNeedsSave = false;
         return;
     }
     //We will modify this document

Too simple to be true ? I prefer asking instead of having missed a "special C++ trick".

Julien.
(As usual, I can of course commit and push it on master if it's ok).
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to