mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
13 lines
295 B
C++
13 lines
295 B
C++
#include "Property.h"
|
|
|
|
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];
|
|
}
|