summaryrefslogtreecommitdiff
path: root/cpp/src/FreezeScript/Data.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2007-11-14 09:56:46 -0800
committerMark Spruiell <mes@zeroc.com>2007-11-14 09:56:46 -0800
commit39f02759cb59efea1ebea37c41ab991e5bd71f6c (patch)
treef6e8775dd80c9c63bf75264b8a0e8812eda43b35 /cpp/src/FreezeScript/Data.cpp
parentBut 2534. (diff)
downloadice-39f02759cb59efea1ebea37c41ab991e5bd71f6c.tar.bz2
ice-39f02759cb59efea1ebea37c41ab991e5bd71f6c.tar.xz
ice-39f02759cb59efea1ebea37c41ab991e5bd71f6c.zip
- Fixing NullHandleException in FreezeScript when a script attempts to
access the 'length' member of a string value. - Adding support for string concatenation using the '+' operator. - Updating the FreezeScript/dbmap test to include string functions.
Diffstat (limited to 'cpp/src/FreezeScript/Data.cpp')
-rw-r--r--cpp/src/FreezeScript/Data.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/FreezeScript/Data.cpp b/cpp/src/FreezeScript/Data.cpp
index cc51a8a2d0e..1fa91b65209 100644
--- a/cpp/src/FreezeScript/Data.cpp
+++ b/cpp/src/FreezeScript/Data.cpp
@@ -1186,6 +1186,7 @@ void
FreezeScript::StringData::setValue(const string& v)
{
_value = v;
+ _length = IntegerDataPtr::dynamicCast(_factory->createInteger(static_cast<Ice::Long>(_value.size()), true));
}
//