summaryrefslogtreecommitdiff
path: root/src/configuration.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-15 22:21:45 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-15 22:25:38 +0100
commite4d63db096901c1d67d0feb72d77bc5d0c8ba1b3 (patch)
treeb07ce915d1e5d4cdd83cf4ab858c69d782ab0fe0 /src/configuration.h
parent08c9cde4726f94698ea938d464cd1de95b7be587 (diff)
downloadmana-client-e4d63db096901c1d67d0feb72d77bc5d0c8ba1b3.tar.gz
mana-client-e4d63db096901c1d67d0feb72d77bc5d0c8ba1b3.tar.bz2
mana-client-e4d63db096901c1d67d0feb72d77bc5d0c8ba1b3.tar.xz
mana-client-e4d63db096901c1d67d0feb72d77bc5d0c8ba1b3.zip
Removed unnecessary parenthesis at constructors
When not passing any parameters to constructors, there is no reason for using parenthesis.
Diffstat (limited to 'src/configuration.h')
-rw-r--r--src/configuration.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configuration.h b/src/configuration.h
index 4d28008d..0b2dc446 100644
--- a/src/configuration.h
+++ b/src/configuration.h
@@ -126,7 +126,7 @@ class ConfigurationObject
template <class IT, class T, class CONT>
void setList(const std::string &name, IT begin, IT end, ConfigurationListManager<T, CONT> *manager)
{
- ConfigurationObject *nextobj = new ConfigurationObject();
+ ConfigurationObject *nextobj = new ConfigurationObject;
deleteList(name);
ConfigurationList *list = &(mContainerOptions[name]);
@@ -134,7 +134,7 @@ class ConfigurationObject
ConfigurationObject *wrobj = manager->writeConfigItem(*it, nextobj);
if (wrobj) { // wrote something
assert (wrobj == nextobj);
- nextobj = new ConfigurationObject();
+ nextobj = new ConfigurationObject;
list->push_back(wrobj);
} else
nextobj->clear(); // you never know...