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.
This commit is contained in:
Mikkel Krautz 2017-02-26 19:25:38 +01:00
parent f2ea3dec5f
commit 4fbbdda070

View File

@ -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();