Reserve space for m_scratchBuffer

Change-Id: I2ecddb9af2c75c8e8a4d7b87995d4d0831b0481e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Yuri Vilmanis
2023-10-30 17:42:23 +10:30
parent 7faec2f469
commit 3d0832cd4a

View File

@@ -740,6 +740,7 @@ Preprocessor::Preprocessor(Client *client, Environment *env)
, m_expandFunctionlikeMacros(true) , m_expandFunctionlikeMacros(true)
, m_keepComments(false) , m_keepComments(false)
{ {
m_scratchBuffer.reserve(256);
} }
QByteArray Preprocessor::run(const Utils::FilePath &filePath, QByteArray Preprocessor::run(const Utils::FilePath &filePath,