remove unused class members and silence compiler warnings

This commit is contained in:
Axel Kohlmeyer
2023-09-24 23:08:59 -04:00
parent b2f62bbd1a
commit 29989f102a
9 changed files with 21 additions and 17 deletions

View File

@ -323,7 +323,7 @@ QString CodeEditor::reformatLine(const QString &line)
}
// append remaining words with just a single blank added.
for (int i = 1; i < words.size(); ++i) {
for (std::size_t i = 1; i < words.size(); ++i) {
newtext += ' ';
newtext += words[i].c_str();
@ -552,7 +552,7 @@ void CodeEditor::keyPressEvent(QKeyEvent *event)
}
// automatically reformat when hitting the return or enter key
if (reformat_on_return && (key == Qt::Key_Return) || (key == Qt::Key_Enter)) {
if (reformat_on_return && ((key == Qt::Key_Return) || (key == Qt::Key_Enter))) {
reformatCurrentLine();
}