aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xsde/cxx/serializer/attribute-validation-source.cxx4
-rw-r--r--xsde/cxx/serializer/element-validation-source.cxx4
-rw-r--r--xsde/cxx/serializer/serializer-source.cxx8
3 files changed, 8 insertions, 8 deletions
diff --git a/xsde/cxx/serializer/attribute-validation-source.cxx b/xsde/cxx/serializer/attribute-validation-source.cxx
index 7dea3c3..8bea35a 100644
--- a/xsde/cxx/serializer/attribute-validation-source.cxx
+++ b/xsde/cxx/serializer/attribute-validation-source.cxx
@@ -343,8 +343,8 @@ namespace CXX
os << "delete[] ns;"
<< "delete[] name;";
else
- os << "::xsde::cxx::free (ns);"
- << "::xsde::cxx::free (name);";
+ os << "::xsde::cxx::free (const_cast<char*> (ns));"
+ << "::xsde::cxx::free (const_cast<char*> (name));";
os << "}"
<< "if (!r)" << endl
diff --git a/xsde/cxx/serializer/element-validation-source.cxx b/xsde/cxx/serializer/element-validation-source.cxx
index ea5fec2..3ca784d 100644
--- a/xsde/cxx/serializer/element-validation-source.cxx
+++ b/xsde/cxx/serializer/element-validation-source.cxx
@@ -750,8 +750,8 @@ namespace CXX
os << "delete[] ns;"
<< "delete[] name;";
else
- os << "::xsde::cxx::free (ns);"
- << "::xsde::cxx::free (name);";
+ os << "::xsde::cxx::free (const_cast<char*> (ns));"
+ << "::xsde::cxx::free (const_cast<char*> (name));";
os << "}"
<< "if (!r)" << endl
diff --git a/xsde/cxx/serializer/serializer-source.cxx b/xsde/cxx/serializer/serializer-source.cxx
index 1dbe496..029fba3 100644
--- a/xsde/cxx/serializer/serializer-source.cxx
+++ b/xsde/cxx/serializer/serializer-source.cxx
@@ -1392,8 +1392,8 @@ namespace CXX
os << "delete[] ns;"
<< "delete[] name;";
else
- os << "::xsde::cxx::free (ns);"
- << "::xsde::cxx::free (name);";
+ os << "::xsde::cxx::free (const_cast<char*> (ns));"
+ << "::xsde::cxx::free (const_cast<char*> (name));";
os << "}"
<< "if (!r)" << endl
@@ -1652,8 +1652,8 @@ namespace CXX
os << "delete[] ns;"
<< "delete[] name;";
else
- os << "::xsde::cxx::free (ns);"
- << "::xsde::cxx::free (name);";
+ os << "::xsde::cxx::free (const_cast<char*> (ns));"
+ << "::xsde::cxx::free (const_cast<char*> (name));";
os << "}"
<< "if (!r)" << endl