From 4fbbdda070f6e25fe4222f2ea93ae501ccf54d86 Mon Sep 17 00:00:00 2001 From: Mikkel Krautz Date: Sun, 26 Feb 2017 19:25:38 +0100 Subject: [PATCH] Meta: move qmConfig.clear(). This moves the qmConfig.clear() call in MetaParams::read() to the top of the function. This allows the SSL part of MetaParams::read() to be moved out to a separate function in the upcoming PR for live-reloading SSL settings via the SIGUSR1 signal. --- src/murmur/Meta.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/murmur/Meta.cpp b/src/murmur/Meta.cpp index 3bd289db4..4d0a070be 100644 --- a/src/murmur/Meta.cpp +++ b/src/murmur/Meta.cpp @@ -112,6 +112,8 @@ T MetaParams::typeCheckedFromSettings(const QString &name, const T &defaultValue } void MetaParams::read(QString fname) { + qmConfig.clear(); + if (fname.isEmpty()) { QStringList datapaths; @@ -507,7 +509,6 @@ void MetaParams::read(QString fname) { qWarning("OpenSSL: %s", SSLeay_version(SSLEAY_VERSION)); - qmConfig.clear(); QStringList hosts; foreach(const QHostAddress &qha, qlBind) { hosts << qha.toString();