aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic2/Logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'extension/src/openvic2/Logger.cpp')
-rw-r--r--extension/src/openvic2/Logger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/extension/src/openvic2/Logger.cpp b/extension/src/openvic2/Logger.cpp
index f211e7e..56d74ab 100644
--- a/extension/src/openvic2/Logger.cpp
+++ b/extension/src/openvic2/Logger.cpp
@@ -7,9 +7,9 @@ using namespace OpenVic2;
Logger::log_func_t Logger::info_func = [](std::string&& str) { std::cout << str; };
Logger::log_func_t Logger::error_func = [](std::string&& str) { std::cerr << str; };
-const char* Logger::get_filename(const char* filepath) {
+char const* Logger::get_filename(char const* filepath) {
if (filepath == nullptr) return nullptr;
- const char *last_slash = filepath;
+ char const* last_slash = filepath;
while (*filepath != '\0') {
if (*filepath == '\\' || *filepath == '/') last_slash = filepath + 1;
filepath++;