summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-27 16:26:18 +0100
committerCarl Hetherington <cth@carlh.net>2024-12-27 16:26:40 +0100
commit6c1b5f16368e2f424d558c47231ab7c15094417d (patch)
treee6d369427f8d8f8db2b076ed4bed9d1472c44d59
parent7a613ab6e7e65fba515a85251177eff2ca5f53fe (diff)
fixup! Use fmt::format() instead of locale_convert<string>
-rw-r--r--src/lib/user_property.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/user_property.h b/src/lib/user_property.h
index e7c9b843b..52713e8c7 100644
--- a/src/lib/user_property.h
+++ b/src/lib/user_property.h
@@ -51,6 +51,20 @@ public:
, unit(unit_)
{}
+ UserProperty(Category category_, std::string key_, char const* value_, std::string unit_ = "")
+ : category(category_)
+ , key(key_)
+ , value(value_)
+ , unit(unit_)
+ {}
+
+ UserProperty(Category category_, std::string key_, char* value_, std::string unit_ = "")
+ : category(category_)
+ , key(key_)
+ , value(value_)
+ , unit(unit_)
+ {}
+
Category category;
std::string key;
std::string value;