sources/mystring.cpp

changeset 181
e254398fcc7c
parent 179
7fc34735178e
child 182
20ca0a6be175
equal deleted inserted replaced
180:2e7225dbd9b2 181:e254398fcc7c
378 else 378 else
379 { 379 {
380 // vsnprintf needs more space, so we have to allocate a new buffer and try again. 380 // vsnprintf needs more space, so we have to allocate a new buffer and try again.
381 Vector<char> newBuffer(length + 1); 381 Vector<char> newBuffer(length + 1);
382 vsnprintf(newBuffer.data(), length + 1, formatString, argsCopy); 382 vsnprintf(newBuffer.data(), length + 1, formatString, argsCopy);
383 m_string = newBuffer; 383 m_string = newBuffer.data();
384 } 384 }
385 } 385 }
386 386
387 /*! 387 /*!
388 * \brief Joins the elements of this string list into one longer string. 388 * \brief Joins the elements of this string list into one longer string.

mercurial