mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-14 23:07:48 -04:00
Reserve enough space before inserting.
This commit is contained in:
@@ -429,6 +429,7 @@ void LoadMessagesQuery::getSQL(std::string &sql)
|
||||
void LoadMessagesQuery::convertUTF8ToMessage(const std::string & utf8Data, std::vector<int8> & messageData) const
|
||||
{
|
||||
auto tmp = base64_decode(utf8Data);
|
||||
messageData.reserve(tmp.size());
|
||||
messageData.insert(std::begin(messageData), std::begin(tmp), std::end(tmp));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user