diff options
| author | Yuri Vilmanis <yuri.vilmanis@gmail.com> | 2023-10-30 17:42:23 +1030 |
|---|---|---|
| committer | Yuri Vilmanis <yuri.vilmanis@gmail.com> | 2023-10-31 13:18:19 +0000 |
| commit | 3d0832cd4a61e75c65f9791522d74e52af53370c (patch) | |
| tree | dc7ec401ef6a4ff7809b41a94b5e756548192d61 /src/libs/cplusplus/pp-engine.cpp | |
| parent | 7faec2f4695c7929fb98aa8fcceef8e8f492324c (diff) | |
Reserve space for m_scratchBuffer
Change-Id: I2ecddb9af2c75c8e8a4d7b87995d4d0831b0481e
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/libs/cplusplus/pp-engine.cpp')
| -rw-r--r-- | src/libs/cplusplus/pp-engine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/cplusplus/pp-engine.cpp b/src/libs/cplusplus/pp-engine.cpp index f4e8dbdbd0c..74ca1ceb516 100644 --- a/src/libs/cplusplus/pp-engine.cpp +++ b/src/libs/cplusplus/pp-engine.cpp @@ -740,6 +740,7 @@ Preprocessor::Preprocessor(Client *client, Environment *env) , m_expandFunctionlikeMacros(true) , m_keepComments(false) { + m_scratchBuffer.reserve(256); } QByteArray Preprocessor::run(const Utils::FilePath &filePath, |
