Fix additional warnings identified in #139

This commit is contained in:
Thomas Krijnen
2016-10-09 12:42:39 +02:00
parent a171b2b9b0
commit bc000fcbab
4 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ void IfcWritableEntity::arg_writable(int i, bool b) {
template <typename T> void IfcWritableEntity::_setArgument(int i, const T& t) {
if ( arg_writable(i) ) delete args[i];
IfcWriteArgument* arg = new IfcWriteArgument(this);
IfcWriteArgument* arg = new IfcWriteArgument;
args[i] = arg;
arg->set(t);
arg_writable(i,true);