mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 06:06:00 -06:00
17 lines
333 B
C++
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
|