diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-01-03 00:54:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-01-03 00:54:07 +0100 |
| commit | e6f2753f4370cc46626fc68efb88705b23ef53e3 (patch) | |
| tree | 95fc4d321b9e944b428a2980428c1bc327b5bca2 /src | |
| parent | 0c2ee93e8fb142878280efd05b4565ee2d91b5aa (diff) | |
Add sub_heading to UserProperty.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/user_property.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/user_property.h b/src/lib/user_property.h index 14b30c2ff..3ec2f355f 100644 --- a/src/lib/user_property.h +++ b/src/lib/user_property.h @@ -37,14 +37,16 @@ public: }; template <class T> - UserProperty(Category category_, std::string key_, T value_, std::string unit_ = "") + UserProperty(Category category_, std::string key_, T value_, std::string unit_ = "", boost::optional<std::string> sub_heading_ = boost::none) : category(category_) + , sub_heading(sub_heading_) , key(key_) , value(dcp::locale_convert<std::string>(value_)) , unit(unit_) {} Category category; + boost::optional<std::string> sub_heading; std::string key; std::string value; std::string unit; |
