git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace boost::scoped_ptr with std::unique_ptr.
[stg.git]
/
include
/
stg
/
user_property.h
diff --git
a/include/stg/user_property.h
b/include/stg/user_property.h
index f024f4575269d2c13f7728f8d5531a442e46e088..4a26b21144dc5e2c908c70ba0eacbfaea3384be4 100644
(file)
--- a/
include/stg/user_property.h
+++ b/
include/stg/user_property.h
@@
-39,7
+39,7
@@
typedef std::map<std::string, USER_PROPERTY_BASE *> REGISTRY;
template<typename varT>
class USER_PROPERTY : public USER_PROPERTY_BASE {
public:
template<typename varT>
class USER_PROPERTY : public USER_PROPERTY_BASE {
public:
- USER_PROPERTY(varT & val);
+
explicit
USER_PROPERTY(varT & val);
virtual ~USER_PROPERTY();
void Set(const varT & rvalue);
virtual ~USER_PROPERTY();
void Set(const varT & rvalue);
@@
-131,7
+131,7
@@
private:
REGISTRY properties;
public:
REGISTRY properties;
public:
- USER_PROPERTIES(const SETTINGS& s);
+
explicit
USER_PROPERTIES(const SETTINGS& s);
USER_STAT & Stat() { return stat; }
USER_CONF & Conf() { return conf; }
USER_STAT & Stat() { return stat; }
USER_CONF & Conf() { return conf; }