diff options
author | Lioncash <mathew1800@gmail.com> | 2018-07-19 01:27:27 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-07-19 01:27:29 -0400 |
commit | 63e64f0131424708da5be6e64109f4909d65d057 (patch) | |
tree | 763ffc8992522e3c725aea4536f9b7f861914b3f /src/common/file_util.h | |
parent | 368e1d25be7893413c4fb845c837c013be5eb70c (diff) |
file_util: return string by const reference for GetExeDirectory()
This disallows modifying the internal string buffer (which shouldn't be
modified anyhow).
Diffstat (limited to 'src/common/file_util.h')
-rw-r--r-- | src/common/file_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h index 026c84d948..1f38b1560e 100644 --- a/src/common/file_util.h +++ b/src/common/file_util.h @@ -133,7 +133,7 @@ std::string GetBundleDirectory(); #endif #ifdef _WIN32 -std::string& GetExeDirectory(); +const std::string& GetExeDirectory(); std::string AppDataRoamingDirectory(); #endif |