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; }