Browse Source

fix compiler warnings

Ashish Kulkarni 8 years ago
parent
commit
e59ddd065d
2 changed files with 1 additions and 2 deletions
  1. 1 1
      src/lib/loadsettings.cc
  2. 0 1
      src/lib/multipageloader.cc

+ 1 - 1
src/lib/loadsettings.cc

@@ -121,7 +121,7 @@ QString proxyToStr(const Proxy & p) {
 		if (!p.password.isEmpty()) res += ":" + p.password;
 	}
 	res += p.host;
-	if (!p.host.isEmpty()) res += ":" + p.port;
+	if (!p.host.isEmpty()) res += ":" + QString::number(p.port);
 	return res;
 }
 

+ 0 - 1
src/lib/multipageloader.cc

@@ -115,7 +115,6 @@ QNetworkReply * MyNetworkAccessManager::createRequest(Operation op, const QNetwo
 	#if (QT_VERSION >= 0x050000 && !defined QT_NO_SSL) || !defined QT_NO_OPENSSL
 	if(!settings.clientSslKeyPath.isEmpty() && !settings.clientSslKeyPassword.isEmpty()
 			&& !settings.clientSslCrtPath.isEmpty()){
-		bool success = true;
 		QSslConfiguration sslConfig = QSslConfiguration::defaultConfiguration();
 
 		QFile keyFile(settings.clientSslKeyPath);