|
|
|
@ -647,7 +647,7 @@ bool CObjectString::set(const std::string& key, const std::string & value)
|
|
|
|
|
{
|
|
|
|
|
//H_AUTO(R2_CObjectString_set)
|
|
|
|
|
|
|
|
|
|
BOMB_IF( key != "", "Try to set the a sub value of an object that does not allowed it", return false);
|
|
|
|
|
BOMB_IF(!key.empty(), "Try to set the a sub value of an object that does not allowed it", return false);
|
|
|
|
|
_Value = value;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
@ -808,7 +808,7 @@ bool CObjectNumber::set(const std::string& key, double value)
|
|
|
|
|
{
|
|
|
|
|
//H_AUTO(R2_CObjectNumber_set)
|
|
|
|
|
|
|
|
|
|
BOMB_IF(key != "", "Try to set an element of a table on an object that is not a table", return false);
|
|
|
|
|
BOMB_IF(!key.empty(), "Try to set an element of a table on an object that is not a table", return false);
|
|
|
|
|
|
|
|
|
|
_Value = value;
|
|
|
|
|
return true;
|
|
|
|
@ -819,7 +819,7 @@ bool CObjectNumber::set(const std::string& key, const std::string & value)
|
|
|
|
|
{
|
|
|
|
|
//H_AUTO(R2_CObjectNumber_set)
|
|
|
|
|
//XXX
|
|
|
|
|
BOMB_IF(key != "", "Try to set an element of a table on an object that is not a table", return false);
|
|
|
|
|
BOMB_IF(!key.empty(), "Try to set an element of a table on an object that is not a table", return false);
|
|
|
|
|
NLMISC::fromString(value, _Value);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
@ -907,7 +907,7 @@ bool CObjectInteger::set(const std::string& key, sint64 value)
|
|
|
|
|
{
|
|
|
|
|
//H_AUTO(R2_CObjectInteger_set)
|
|
|
|
|
|
|
|
|
|
BOMB_IF(key != "", "Try to set an element of a table on an object that is not a table", return false);
|
|
|
|
|
BOMB_IF(!key.empty(), "Try to set an element of a table on an object that is not a table", return false);
|
|
|
|
|
|
|
|
|
|
_Value = value;
|
|
|
|
|
return true;
|
|
|
|
@ -918,7 +918,7 @@ bool CObjectInteger::set(const std::string& key, const std::string & value)
|
|
|
|
|
{
|
|
|
|
|
//H_AUTO(R2_CObjectInteger_set)
|
|
|
|
|
//XXX
|
|
|
|
|
BOMB_IF(key != "", "Try to set an element of a table on an object that is not a table", return false);
|
|
|
|
|
BOMB_IF(!key.empty(), "Try to set an element of a table on an object that is not a table", return false);
|
|
|
|
|
NLMISC::fromString(value, _Value);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|