comparison src/folderselectdialog.cpp @ 99:0cf81afa82c1

Fix compiler warning about logic error
author Andre Heinecke <andre.heinecke@intevation.de>
date Fri, 18 Nov 2016 11:35:50 +0100
parents c3000fa6ca56
children 7c84242971cb
comparison
equal deleted inserted replaced
98:2b916977c260 99:0cf81afa82c1
26 #include <QStandardItem> 26 #include <QStandardItem>
27 #include <QMessageBox> 27 #include <QMessageBox>
28 28
29 static ulong ipStringToLong(const QString str) { 29 static ulong ipStringToLong(const QString str) {
30 QStringList octets = str.split("."); 30 QStringList octets = str.split(".");
31 if (!octets.size() > 3) { 31 if (!(octets.size() > 3)) {
32 qWarning() << "invalid call to str to long"; 32 qWarning() << "invalid call to str to long";
33 return 0; 33 return 0;
34 } 34 }
35 ulong s1 = octets.at(0).toLong(); 35 ulong s1 = octets.at(0).toLong();
36 ulong s2 = octets.at(1).toLong(); 36 ulong s2 = octets.at(1).toLong();
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)