Skip to content

Commit 636699b

Browse files
committed
Use reserve on escapeFilename
1 parent 9706983 commit 636699b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/nbl/asset/utils/IShaderCompiler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ using namespace nbl::asset;
1515
std::string IShaderCompiler::escapeFilename(std::string&& code)
1616
{
1717
std::string dest;
18+
dest.reserve(code.size() * 2);
1819
for (char c : code)
1920
{
2021
if (c == '\\')

0 commit comments

Comments
 (0)