aboutsummaryrefslogtreecommitdiff
path: root/extension/src/openvic2/Logger.cpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-04-25 01:03:15 +0200
committer Hop311 <hop3114@gmail.com>2023-04-25 01:03:15 +0200
commit8fba1c8a02f8680e0d80279b8b6451fea4a40a62 (patch)
treeba88378d61e2121a26847b2f68ac5111b5c9baec /extension/src/openvic2/Logger.cpp
parent639f86febf39184cccde9f898fc328375048233f (diff)
Req comments + cleanup + c++ registry refactoring
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++;