summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-12-09 15:14:41 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-12-22 14:25:34 (GMT)
commit97be7ed34538186e34575cc9a0426aaf9260f64e (patch)
tree592c36cfd3eebc08f8917a41119999969fd71972
parentc862d5d733307dd76fdad38f2a77de696439e402 (diff)
downloadswift-97be7ed34538186e34575cc9a0426aaf9260f64e.zip
swift-97be7ed34538186e34575cc9a0426aaf9260f64e.tar.bz2
Fixed memory leak in QtURLValidator.
Change-Id: I66f5a88e29df12666f0af011eccb0fd9ce0474db
-rw-r--r--Swift/QtUI/QtURLValidator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/QtURLValidator.cpp b/Swift/QtUI/QtURLValidator.cpp
index 2df59c4..4d56b98 100644
--- a/Swift/QtUI/QtURLValidator.cpp
+++ b/Swift/QtUI/QtURLValidator.cpp
@@ -10,11 +10,11 @@
#include <Swift/QtUI/QtSwiftUtil.h>
namespace Swift {
-QtURLValidator::QtURLValidator(QObject* parent) {
+QtURLValidator::QtURLValidator(QObject* parent) : QValidator(parent) {
}
-QValidator::State QtURLValidator::validate(QString& input, int& pos) const {
+QValidator::State QtURLValidator::validate(QString& input, int&) const {
URL url = URL::fromString(Q2PSTRING(input));
bool valid = !url.isEmpty();
valid &= (url.getScheme() == "http" || url.getScheme() == "https");