summaryrefslogtreecommitdiff
path: root/indra/llinventory/llsettingsbase.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llinventory/llsettingsbase.h')
-rw-r--r--indra/llinventory/llsettingsbase.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/indra/llinventory/llsettingsbase.h b/indra/llinventory/llsettingsbase.h
index 7de71588ef..20979bd98e 100644
--- a/indra/llinventory/llsettingsbase.h
+++ b/indra/llinventory/llsettingsbase.h
@@ -49,8 +49,7 @@
#define SETTINGS_OVERRIDE override
class LLSettingsBase :
- public PTR_NAMESPACE::enable_shared_from_this<LLSettingsBase>,
- private boost::noncopyable
+ public PTR_NAMESPACE::enable_shared_from_this<LLSettingsBase>
{
friend class LLEnvironment;
friend class LLSettingsDay;
@@ -96,7 +95,11 @@ public:
typedef PTR_NAMESPACE::shared_ptr<LLSettingsBase> ptr_t;
- virtual ~LLSettingsBase() { };
+ virtual ~LLSettingsBase() = default;
+
+ // Non-copyable
+ LLSettingsBase(const LLSettingsBase&) = delete;
+ LLSettingsBase& operator=(const LLSettingsBase&) = delete;
//---------------------------------------------------------------------
virtual std::string getSettingsType() const = 0;
@@ -285,7 +288,7 @@ public:
public:
static const U32 VALIDATION_PARTIAL;
- typedef boost::function<bool(LLSD &, U32)> verify_pr;
+ typedef std::function<bool(LLSD &, U32)> verify_pr;
Validator(std::string name, bool required, LLSD::Type type, verify_pr verify = verify_pr(), LLSD defval = LLSD()) :
mName(name),
@@ -398,7 +401,7 @@ protected:
private:
bool mLLSDDirty;
- bool mDirty;
+ bool mDirty; // gates updateSettings
bool mReplaced; // super dirty!
static LLSD combineSDMaps(const LLSD &first, const LLSD &other);
@@ -430,7 +433,7 @@ public:
mFinal = mInitial;
}
- virtual ~LLSettingsBlender() {}
+ virtual ~LLSettingsBlender() = default;
virtual void reset( LLSettingsBase::ptr_t &initsetting, const LLSettingsBase::ptr_t &endsetting, const LLSettingsBase::TrackPosition&)
{