Speed up String2Vector.
PiperOrigin-RevId: 612767185 Change-Id: I4a4de5e03bbd6653be7ccb3e730ad64a335e17b0
This commit is contained in:
committed by
Copybara-Service
parent
9efa4ebe0b
commit
31384bdfeb
@@ -490,7 +490,7 @@ mjtByte mjm_setInStringVec(mjStringVec dest, int i, const char* text) {
|
||||
// split text and copy into string array
|
||||
void mjm_setStringVec(mjStringVec dest, const char* text) {
|
||||
std::vector<std::string>* v = reinterpret_cast<std::vector<std::string>*>(dest);
|
||||
mjXUtil::String2Vector(text, *v);
|
||||
*v = mjXUtil::String2Vector<std::string>(text);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user