XMLConfiguration default (and single-argument delimiter) constructor now loads an empty XML document with "config" root element to make the configuration usable without an additional call to load() or loadEmpty().

This commit is contained in:
Guenter Obiltschnig
2016-10-16 13:39:17 +02:00
parent f777325cea
commit 5df2508986
4 changed files with 41 additions and 3 deletions

View File

@@ -39,12 +39,14 @@ namespace Util {
XMLConfiguration::XMLConfiguration():
_delim('.')
{
loadEmpty("config");
}
XMLConfiguration::XMLConfiguration(char delim):
_delim(delim)
{
loadEmpty("config");
}