diff --git a/include/components/logger.hpp b/include/components/logger.hpp index 0d270927..6d995072 100644 --- a/include/components/logger.hpp +++ b/include/components/logger.hpp @@ -100,6 +100,7 @@ class logger { /** * Convert string */ + const char* convert(string& arg) const; const char* convert(const string& arg) const; /** diff --git a/src/components/logger.cpp b/src/components/logger.cpp index f1e968c8..f5151799 100644 --- a/src/components/logger.cpp +++ b/src/components/logger.cpp @@ -13,6 +13,10 @@ POLYBAR_NS /** * Convert string */ +const char* logger::convert(string& arg) const { + return arg.c_str(); +} + const char* logger::convert(const string& arg) const { return arg.c_str(); }