diff options
author | Remko Tronçon <git@el-tramo.be> | 2012-12-09 15:14:41 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2012-12-22 14:25:34 (GMT) |
commit | 97be7ed34538186e34575cc9a0426aaf9260f64e (patch) | |
tree | 592c36cfd3eebc08f8917a41119999969fd71972 /Swift | |
parent | c862d5d733307dd76fdad38f2a77de696439e402 (diff) | |
download | swift-97be7ed34538186e34575cc9a0426aaf9260f64e.zip swift-97be7ed34538186e34575cc9a0426aaf9260f64e.tar.bz2 |
Fixed memory leak in QtURLValidator.
Change-Id: I66f5a88e29df12666f0af011eccb0fd9ce0474db
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/QtUI/QtURLValidator.cpp | 4 |
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"); |