projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use dcp::File in DCP-o-matic (#2231).
[dcpomatic.git]
/
src
/
lib
/
user_property.h
diff --git
a/src/lib/user_property.h
b/src/lib/user_property.h
index a7a6f63da2336f6eece25b5e4dd994df669cc65f..fb597eeb64ff67dd74e5b2b67658a017572a228d 100644
(file)
--- a/
src/lib/user_property.h
+++ b/
src/lib/user_property.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2013-20
16
Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-20
21
Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
This file is part of DCP-o-matic.
@@
-18,10
+18,13
@@
*/
*/
+
#ifndef DCPOMATIC_USER_PROPERTY_H
#define DCPOMATIC_USER_PROPERTY_H
#ifndef DCPOMATIC_USER_PROPERTY_H
#define DCPOMATIC_USER_PROPERTY_H
-#include "raw_convert.h"
+
+#include <dcp/locale_convert.h>
+
class UserProperty
{
class UserProperty
{
@@
-37,7
+40,7
@@
public:
UserProperty (Category category_, std::string key_, T value_, std::string unit_ = "")
: category (category_)
, key (key_)
UserProperty (Category category_, std::string key_, T value_, std::string unit_ = "")
: category (category_)
, key (key_)
- , value (
raw
_convert<std::string> (value_))
+ , value (
dcp::locale
_convert<std::string> (value_))
, unit (unit_)
{}
, unit (unit_)
{}
@@
-47,4
+50,5
@@
public:
std::string unit;
};
std::string unit;
};
+
#endif
#endif