astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2020-07-19 11:10:53 +02:00
parent 7e65b561f0
commit 5df9cd90a6
2 changed files with 4 additions and 8 deletions

View File

@ -84,18 +84,15 @@ public:
*/ */
void setError(int errorLine, const QStringList &symbols); void setError(int errorLine, const QStringList &symbols);
void setFileName(const QString &fileName) void setFileName(const QString &fileName) {
{
mFileName = fileName; mFileName = fileName;
} }
QString getFileName() const QString getFileName() const {
{
return mFileName; return mFileName;
} }
void clear() void clear() {
{
mFileName.clear(); mFileName.clear();
setPlainText(QString()); setPlainText(QString());
} }

View File

@ -429,8 +429,7 @@ void ResultsView::updateDetails(const QModelIndex &index)
if (data.contains("symbolNames")) if (data.contains("symbolNames"))
symbols = data["symbolNames"].toString().split("\n"); symbols = data["symbolNames"].toString().split("\n");
if (filepath == mUI.mCode->getFileName()) if (filepath == mUI.mCode->getFileName()) {
{
mUI.mCode->setError(lineNumber, symbols); mUI.mCode->setError(lineNumber, symbols);
return; return;
} }