ultimatepp/bazaar/Property/Property.cpp
kohait 9b18b6c807 bazaar: Property, ValueCtrl, CtrlProp: namespace fixes and some cleanup
git-svn-id: svn://ultimatepp.org/upp/trunk@3865 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-09-15 23:17:59 +00:00

17 lines
333 B
C++

#include "Property.h"
NAMESPACE_UPP
void AddToValueArray(Value& v, const Vector<String>& k)
{
if(!v.Is<ValueArray>())
{
v = ValueArray(Vector<Value>());
}
ValueArray va = v;
Vector<Value>& vv = const_cast<Vector<Value>&>(va.Get());
for(int i = 0; i < k.GetCount(); i++)
vv << k[i];
}
END_UPP_NAMESPACE