You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by ro...@apache.org on 2007/04/26 11:49:11 UTC
svn commit: r532686 -
/incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/CopyHelper.cpp
Author: robbinspg
Date: Thu Apr 26 02:49:10 2007
New Revision: 532686
URL: http://svn.apache.org/viewvc?view=rev&rev=532686
Log:
TUSCANY-1226 Copy Null values that are set
Modified:
incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/CopyHelper.cpp
Modified: incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/CopyHelper.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/CopyHelper.cpp?view=diff&rev=532686&r1=532685&r2=532686
==============================================================================
--- incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/CopyHelper.cpp (original)
+++ incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/CopyHelper.cpp Thu Apr 26 02:49:10 2007
@@ -86,6 +86,11 @@
to->setString(p, buf, siz);
delete[] buf;
}
+ else
+ {
+ // property is set to a NULL value
+ to->setString(p, (const wchar_t*)0, 0);
+ }
}
break;
case Type::BytesType:
@@ -98,6 +103,11 @@
to->setBytes(p, buf, siz);
delete buf;
}
+ else
+ {
+ // property is set to a NULL value
+ to->setBytes(p, (const char*)0, 0);
+ }
}
break;
default:
@@ -157,6 +167,11 @@
to.append(buf,siz);
delete buf;
}
+ else
+ {
+ // Property is set to a NULL value
+ to.append((const wchar_t*)0, 0);
+ }
}
break;
@@ -170,6 +185,11 @@
to.append(buf,siz);
delete buf;
}
+ else
+ {
+ // Property is set to a NULL value
+ to.append((const char*)0, 0);
+ }
}
break;
@@ -225,6 +245,11 @@
to->addString(p, buf, siz);
delete[] buf;
}
+ else
+ {
+ // property is set to a NULL value
+ to->addString(p, 0, 0);
+ }
}
break;
case Type::BytesType:
@@ -236,6 +261,11 @@
from->getBytesValue(index, buf, siz);
to->addBytes(p, buf, siz);
delete buf;
+ }
+ else
+ {
+ // property is set to a NULL value
+ to->addBytes(p, 0, 0);
}
}
break;
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org