diff options
author | Mark Spruiell <mes@zeroc.com> | 2007-11-14 09:56:46 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2007-11-14 09:56:46 -0800 |
commit | 39f02759cb59efea1ebea37c41ab991e5bd71f6c (patch) | |
tree | f6e8775dd80c9c63bf75264b8a0e8812eda43b35 /cpp/src/FreezeScript/Data.cpp | |
parent | But 2534. (diff) | |
download | ice-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.cpp | 1 |
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)); } // |