diff --git a/applicationdata.cpp b/applicationdata.cpp index 951bb14..4948be2 100644 --- a/applicationdata.cpp +++ b/applicationdata.cpp @@ -145,7 +145,7 @@ void ApplicationData::readConfig() } logDir.setPath(m_logPath); if (not logDir.mkdir("TeSt__FoLdEr")) { - throw std::runtime_error("ApplicationData::readConfig(): " + m_logPath.toStdString() + " is unwritable"); + throw std::runtime_error("ApplicationData::readConfig(): Log path '" + m_logPath.toStdString() + "' is unwritable"); } logDir.rmdir("TeSt__FoLdEr"); @@ -160,7 +160,7 @@ void ApplicationData::readConfig() } bool success = false; - m_webInterfacePort = global::getValue(globalSection, "bind_to_port").toUInt(&success); + m_webInterfacePort = global::getValue(globalSection, "bind_to_port").toUShort(&success); if (not success) { throw std::runtime_error("ApplicationData::readConfig(): 'bind_to_port' in [GLOBAL] is incorrect"); } @@ -211,7 +211,7 @@ void ApplicationData::readConfig() } success = false; - newConnection.port = global::getValue(currentSection, "port").toUInt(&success); + newConnection.port = global::getValue(currentSection, "port").toUShort(&success); if (not success) { qInfo().noquote() << "[" + newConnection.displayName + "]" << "ignored (wrong 'port')"; continue;