summaryrefslogtreecommitdiff
path: root/src/lib/user_property.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/user_property.h')
-rw-r--r--src/lib/user_property.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/user_property.h b/src/lib/user_property.h
index fb597eeb6..e7c9b843b 100644
--- a/src/lib/user_property.h
+++ b/src/lib/user_property.h
@@ -23,7 +23,7 @@
#define DCPOMATIC_USER_PROPERTY_H
-#include <dcp/locale_convert.h>
+#include <fmt/format.h>
class UserProperty
@@ -40,10 +40,17 @@ public:
UserProperty (Category category_, std::string key_, T value_, std::string unit_ = "")
: category (category_)
, key (key_)
- , value (dcp::locale_convert<std::string> (value_))
+ , value(fmt::format("{:L}", value_))
, unit (unit_)
{}
+ UserProperty(Category category_, std::string key_, std::string value_, std::string unit_ = "")
+ : category(category_)
+ , key(key_)
+ , value(value_)
+ , unit(unit_)
+ {}
+
Category category;
std::string key;
std::string value;