Changeset 973 for cpp/frams/util/extvalue.cpp
- Timestamp:
- 07/03/20 00:37:13 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/util/extvalue.cpp
r940 r973 326 326 { 327 327 SString tmp = getString(); 328 if (tmp.len () > 30) tmp = tmp.substr(0, 30) + "...";328 if (tmp.length() > 30) tmp = tmp.substr(0, 30) + "..."; 329 329 if (type == TString) tmp = SString("\"") + tmp + SString("\""); 330 330 logPrintf("ExtValue", "getObjectTarget", LOG_WARN, "%s object expected, %s found", classname, tmp.c_str()); … … 614 614 return; 615 615 case TDouble: 616 setDouble(double(getInt()) *src.getDouble());616 setDouble(double(getInt()) * src.getDouble()); 617 617 return; 618 618 default:; … … 790 790 // ^-cur ^-next 791 791 // ^^^^^^^^^^___sub 792 const char* begin = fmt.c_str(), *end = begin + fmt.len (), *curr = begin;792 const char* begin = fmt.c_str(), *end = begin + fmt.length(), *curr = begin; 793 793 int type = 0; 794 794 … … 1401 1401 err->message = args[0].getString(); 1402 1402 if (err->message.startsWith(TO_STRING_PREFIX.c_str())) 1403 err->message = err->message.substr(TO_STRING_PREFIX.len ());1403 err->message = err->message.substr(TO_STRING_PREFIX.length()); 1404 1404 *ret = makeDynamicObject(err); 1405 1405 }
Note: See TracChangeset
for help on using the changeset viewer.