0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-18 09:58:22 +02:00

cache: do not cause an implicit copy of std::string elements

This commit is contained in:
William Pitcock 2016-07-31 01:19:15 -05:00
parent c7135bdf9a
commit 840ffb0935

View file

@ -122,7 +122,7 @@ cachefile::cache(const char *filename, const char *shortname, int flags_)
*p = '\0';
untabify(untabline, line, sizeof(untabline));
contents.push_back(std::string(untabline));
contents.push_back(untabline);
}
fclose(in);