Salome HOME
updated copyright message
[modules/shaper.git] / src / Config / Config_WidgetReader.cpp
index 89205a2df4f194770638579c9648fa303c958669..ddd64877b55f9456d6d9f617c2bddd2cbd2ff73d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2017  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
 //
 // You should have received a copy of the GNU Lesser General Public
 // License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-/*
- * Config_WidgetReader.cpp
- *
- *  Created on: Apr 2, 2014
- *      Author: sbh
- */
-
 #include <Config_WidgetReader.h>
 #include <Config_Keywords.h>
 #include <Config_Common.h>
@@ -114,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);
     }
@@ -123,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;