From 1b5f9cb079f6e28a6c7e7098b240daabe8274073 Mon Sep 17 00:00:00 2001 From: Kontinuation Date: Fri, 23 May 2014 02:38:57 +0800 Subject: [PATCH] style fixes --- JSON/include/Poco/JSON/Array.h | 4 ++-- Util/src/JSONConfiguration.cpp | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/JSON/include/Poco/JSON/Array.h b/JSON/include/Poco/JSON/Array.h index 6a34eb10c..2707e7181 100644 --- a/JSON/include/Poco/JSON/Array.h +++ b/JSON/include/Poco/JSON/Array.h @@ -154,7 +154,7 @@ public: void add(const Dynamic::Var& value); /// Add the given value to the array - void set(unsigned int index, const Dynamic::Var &value); + void set(unsigned int index, const Dynamic::Var& value); /// Update the element on the given index to specified value void stringify(std::ostream& out, unsigned int indent = 0, int step = -1) const; @@ -224,7 +224,7 @@ inline void Array::add(const Dynamic::Var& value) } -inline void Array::set(unsigned int index, const Dynamic::Var &value) +inline void Array::set(unsigned int index, const Dynamic::Var& value) { if (index >= _values.size()) _values.resize(index + 1); _values[index] = value; diff --git a/Util/src/JSONConfiguration.cpp b/Util/src/JSONConfiguration.cpp index 339d692a3..2cb912077 100644 --- a/Util/src/JSONConfiguration.cpp +++ b/Util/src/JSONConfiguration.cpp @@ -250,9 +250,7 @@ void JSONConfiguration::setValue(const std::string& key, const Poco::DynamicAny& KeyValue kv(key, sValue); if (eventsEnabled()) - { - propertyChanging(this, kv); } @@ -299,9 +297,7 @@ void JSONConfiguration::setValue(const std::string& key, const Poco::DynamicAny& } if (eventsEnabled()) - { - propertyChanged(this, kv); } }