diff options
author | Hop311 <Hop3114@gmail.com> | 2023-04-26 01:26:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 01:26:33 +0200 |
commit | 10053cf259c55ee45803268a844edf1011d8a16b (patch) | |
tree | fcf86e6fac31430ba537a0d056e97f901ad76dd7 /extension/src/openvic2/Logger.cpp | |
parent | 639f86febf39184cccde9f898fc328375048233f (diff) | |
parent | 563834e7e6f9ce565bbfd553a0d9ff80a98c677d (diff) |
Merge pull request #98 from OpenVic2Project/some-cleanup
Req comments + cleanup + c++ registry refactoring
Diffstat (limited to 'extension/src/openvic2/Logger.cpp')
-rw-r--r-- | extension/src/openvic2/Logger.cpp | 4 |
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++; |