From 5df9cd90a61b8adaf33e9ee1ce73c2ed85dcf059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 19 Jul 2020 11:10:53 +0200 Subject: [PATCH] astyle formatting [ci skip] --- gui/codeeditor.h | 9 +++------ gui/resultsview.cpp | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/gui/codeeditor.h b/gui/codeeditor.h index 3ed01d6b0..479125c0a 100644 --- a/gui/codeeditor.h +++ b/gui/codeeditor.h @@ -84,18 +84,15 @@ public: */ void setError(int errorLine, const QStringList &symbols); - void setFileName(const QString &fileName) - { + void setFileName(const QString &fileName) { mFileName = fileName; } - QString getFileName() const - { + QString getFileName() const { return mFileName; } - void clear() - { + void clear() { mFileName.clear(); setPlainText(QString()); } diff --git a/gui/resultsview.cpp b/gui/resultsview.cpp index 35a5b5d96..b3beb24b7 100644 --- a/gui/resultsview.cpp +++ b/gui/resultsview.cpp @@ -429,8 +429,7 @@ void ResultsView::updateDetails(const QModelIndex &index) if (data.contains("symbolNames")) symbols = data["symbolNames"].toString().split("\n"); - if (filepath == mUI.mCode->getFileName()) - { + if (filepath == mUI.mCode->getFileName()) { mUI.mCode->setError(lineNumber, symbols); return; }