From 8fba1c8a02f8680e0d80279b8b6451fea4a40a62 Mon Sep 17 00:00:00 2001 From: Hop311 Date: Tue, 25 Apr 2023 00:03:15 +0100 Subject: Req comments + cleanup + c++ registry refactoring --- extension/src/openvic2/Logger.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extension/src/openvic2/Logger.hpp') diff --git a/extension/src/openvic2/Logger.hpp b/extension/src/openvic2/Logger.hpp index 749c67f..624df29 100644 --- a/extension/src/openvic2/Logger.hpp +++ b/extension/src/openvic2/Logger.hpp @@ -25,9 +25,9 @@ namespace OpenVic2 { return source_location(f, l, n); } - inline const char* file_name() const { return _file.c_str(); } + inline char const* file_name() const { return _file.c_str(); } inline int line() const {return _line; } - inline const char* function_name() const { return _function.c_str(); } + inline char const* function_name() const { return _function.c_str(); } }; #endif @@ -42,7 +42,7 @@ namespace OpenVic2 { static log_func_t info_func, error_func; - static const char* get_filename(const char* filepath); + static char const* get_filename(char const* filepath); template struct log { -- cgit v1.2.3-56-ga3b1