Code readability, vec reserve() and remove excess c_str()

This commit is contained in:
lainon committed 2022-09-30 12:31:32 +03:00
1 parent fec708489a
commit b304551747
22 files changed
+41 -34

No files matched your search

+1 -1
View File
@@ -176,7 +176,7 @@ bool RemoteISOConnectScreen::FindServer(std::string &resultHost, int &resultPort
};
// Try last server first, if it is set
if (g_Config.iLastRemoteISOPort && g_Config.sLastRemoteISOServer != "") {
if (g_Config.iLastRemoteISOPort && !g_Config.sLastRemoteISOServer.empty()) {
if (TryServer(g_Config.sLastRemoteISOServer.c_str(), g_Config.iLastRemoteISOPort)) {
return true;
}