From 63e64f0131424708da5be6e64109f4909d65d057 Mon Sep 17 00:00:00 2001 From: Lioncash <mathew1800@gmail.com> Date: Thu, 19 Jul 2018 01:27:27 -0400 Subject: file_util: return string by const reference for GetExeDirectory() This disallows modifying the internal string buffer (which shouldn't be modified anyhow). --- src/common/file_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/file_util.h') 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 -- cgit v1.2.3-70-g09d2