Skip to content

Commit dd6de94

Browse files
committed
Fix build for Qt versions < 5.10
1 parent 1d6214b commit dd6de94

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/CondFormat.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ std::string CondFormat::filterToSqlCondition(const QString& value, const QString
9999
op = value.left(2);
100100
val = value.mid(2);
101101
}
102-
} else if(value.front() == ">" || value.front() == "<") {
102+
} else if(value.at(0) == ">" || value.at(0) == "<") {
103103
value.midRef(1).toFloat(&numeric);
104-
op = value.front();
104+
op = value.at(0);
105105
val = value.mid(1);
106-
} else if(value.front() == "=") {
106+
} else if(value.at(0) == "=") {
107107
val = value.mid(1);
108108

109109
// Check if value to compare with is 'NULL'
@@ -117,7 +117,7 @@ std::string CondFormat::filterToSqlCondition(const QString& value, const QString
117117
op = "IS";
118118
numeric = true;
119119
}
120-
} else if(value.front() == "/" && value.back() == "/" && value.size() > 2) {
120+
} else if(value.at(0) == "/" && value.back() == "/" && value.size() > 2) {
121121
val = value.mid(1, value.length() - 2);
122122
op = "REGEXP";
123123
numeric = false;

src/PreferencesDialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ void PreferencesDialog::saveSettings()
339339

340340
void PreferencesDialog::showColourDialog(QTreeWidgetItem* item, int column)
341341
{
342-
if(item->text(column).front() != "#")
342+
if(item->text(column).at(0) != "#")
343343
return;
344344

345345
QColor colour = QColorDialog::getColor(QColor(item->text(column)), this);

0 commit comments

Comments
 (0)