Salome HOME
updated copyright message
[modules/shaper.git] / src / Config / Config_WidgetReader.cpp
index 5b785a55c22ad515e677ac47eaf06a7546ff142c..ddd64877b55f9456d6d9f617c2bddd2cbd2ff73d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -107,7 +107,10 @@ std::string Config_WidgetReader::dumpNode(xmlNodePtr theNode)
     std::string anOwnPanel = getProperty(theNode, PROPERTY_PANEL_ID);
     if (!anOwnPanel.empty()) {
       xmlBufferPtr buffer = xmlBufferCreate();
-      int size = xmlNodeDump(buffer, theNode->doc, theNode, 0, 0);
+#ifdef _DEBUG
+      int size =
+#endif
+        xmlNodeDump(buffer, theNode->doc, theNode, 0, 0);
       result = std::string((char*) (buffer->content));
       xmlBufferFree(buffer);
     }
@@ -116,7 +119,10 @@ std::string Config_WidgetReader::dumpNode(xmlNodePtr theNode)
   //Replace all "source" nodes with content;
   resolveSourceNodes(theNode);
   xmlBufferPtr buffer = xmlBufferCreate();
-  int size = xmlNodeDump(buffer, theNode->doc, theNode, 0, 0);
+#ifdef _DEBUG
+  int size =
+#endif
+    xmlNodeDump(buffer, theNode->doc, theNode, 0, 0);
   result = std::string((char*) (buffer->content));
   xmlBufferFree(buffer);
   return result;