- Support for returning non-capitalized enum strings if OnGetString()'s tempString parameter is null
{
public:
class_fixed
- public property Container<T> copySrc { set { Copy(value); } }
+ public property Container<T> copySrc { set { if(value) Copy(value); } }
property Iterator<T> firstIterator { get { value = { (Container<T>)this, pointer = GetFirst() }; } }
property Iterator<T> lastIterator { get { value = { (Container<T>)this, pointer = GetLast() }; } }
{
IteratorPointer i;
RemoveAll();
- if(eClass_IsDerived(value._class, class(Map)))
+ if(value && eClass_IsDerived(value._class, class(Map)))
{
for(i = value.GetFirst(); i; i = value.GetNext(i))
{
}
if(item)
{
- strcpy(tempString, item.name);
- if(!needClass || !*needClass)
- tempString[0] = (char)toupper(tempString[0]);
- return tempString;
- //return item.name;
+ if(tempString)
+ {
+ strcpy(tempString, item.name);
+ if(!needClass || !*needClass)
+ tempString[0] = (char)toupper(tempString[0]);
+ return tempString;
+ }
+ else
+ return item.name;
}
else
return null;