mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Improvements to STParsedJSON:
* Cleanups and reduction of copying * Add STArray::back, operator[], push_back(&&) * Add make_stvar * Rework STParsedJSON * Fix code and unit tests that use STParsedJSON * STTx move constructor
This commit is contained in:
@@ -71,16 +71,6 @@ STObject::STObject (SOTemplate const& type,
|
||||
setType (type);
|
||||
}
|
||||
|
||||
STObject::STObject (SField const& name,
|
||||
boost::ptr_vector<STBase>& data)
|
||||
: STBase (name)
|
||||
, mType (nullptr)
|
||||
{
|
||||
v_.reserve(data.size());
|
||||
for (auto const& b : data)
|
||||
v_.emplace_back(b);
|
||||
}
|
||||
|
||||
STObject::STObject (SerialIter& sit, SField const& name)
|
||||
: STBase(name)
|
||||
, mType(nullptr)
|
||||
|
||||
Reference in New Issue
Block a user