polybar/src/x11/xresources.cpp

18 lines
306 B
C++
Raw Normal View History

2016-11-02 19:22:45 +00:00
#include "x11/xresources.hpp"
#include "common.hpp"
2016-11-19 05:22:44 +00:00
POLYBAR_NS
2016-11-02 19:22:45 +00:00
template <>
string xresource_manager::convert(string&& value) const {
return forward<string>(value);
2016-11-02 19:22:45 +00:00
}
template <>
double xresource_manager::convert(string&& value) const {
return std::strtod(value.c_str(), nullptr);
2016-11-02 19:22:45 +00:00
}
2016-11-19 05:22:44 +00:00
POLYBAR_NS_END