summaryrefslogtreecommitdiffstats
path: root/src/xml_to_data/device_xml_to_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml_to_data/device_xml_to_data.h')
-rw-r--r--src/xml_to_data/device_xml_to_data.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xml_to_data/device_xml_to_data.h b/src/xml_to_data/device_xml_to_data.h
index f9874e4..36b8824 100644
--- a/src/xml_to_data/device_xml_to_data.h
+++ b/src/xml_to_data/device_xml_to_data.h
@@ -75,7 +75,7 @@ public:
ts << "const char *" << namespaceName() << "::DATA_STREAM =" << endl;
TQValueList<DataType *> list;
for (it=_map.begin(); it!=_map.end(); ++it)
- list.append(static_cast<const DataType *>(it.data()));
+ list.append(const_cast<DataType *>(static_cast<const DataType *>(it.data())));
uint size = toCppString(list, ts);
ts << ";" << endl;
ts << "const uint " << namespaceName() << "::DATA_SIZE = " << size << ";" << endl;