From 97be7ed34538186e34575cc9a0426aaf9260f64e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sun, 9 Dec 2012 16:14:41 +0100
Subject: Fixed memory leak in QtURLValidator.

Change-Id: I66f5a88e29df12666f0af011eccb0fd9ce0474db

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");
-- 
cgit v0.10.2-6-g49f6