Skip to content

Commit b660cf8

Browse files
committed
astyle formatting
1 parent ea574b0 commit b660cf8

4 files changed

Lines changed: 8 additions & 11 deletions

File tree

‎gui/mainwindow.cpp‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,7 @@ void MainWindow::HandleCLIParams(const QStringList &params)
207207
checkedDir = params[ind + 1];
208208

209209
LoadResults(logFile, checkedDir);
210-
}
211-
else
212-
{
210+
} else {
213211
LoadResults(logFile);
214212
}
215213
} else

‎gui/mainwindow.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ protected slots:
404404
* @param params List of string given to command line.
405405
*/
406406
void HandleCLIParams(const QStringList &params);
407-
407+
408408
/**
409409
* @brief Load XML file to the GUI.
410410
* @param file Filename (inc. path) of XML file to load.

‎gui/resultstree.cpp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ void ResultsTree::contextMenuEvent(QContextMenuEvent * e)
535535
QAction *copymessageid = new QAction(tr("Copy message id"), &menu);
536536
QAction *hide = new QAction(tr("Hide"), &menu);
537537
QAction *hideallid = new QAction(tr("Hide all with id"), &menu);
538-
538+
539539
if (multipleSelection) {
540540
copyfilename->setDisabled(true);
541541
copypath->setDisabled(true);
@@ -784,17 +784,17 @@ void ResultsTree::HideAllIdResult()
784784
if (!file) {
785785
continue;
786786
}
787-
787+
788788
//Get the amount of errors this file contains
789789
int errorcount = file->rowCount();
790790

791791
for (int j = 0; j < errorcount; j++) {
792792
//Get the error itself
793793
QStandardItem *child = file->child(j, 0);
794794
if (!child) {
795-
continue;
795+
continue;
796796
}
797-
797+
798798
QVariantMap userdata = child->data().toMap();
799799
if (userdata["id"].toString() == messageId) {
800800
userdata["hide"] = true;

‎lib/checkuninitvar.cpp‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,11 @@ class UninitVar : public ExecutionPath {
278278
CheckUninitVar *checkUninitVar = dynamic_cast<CheckUninitVar *>(c->owner);
279279
if (checkUninitVar) {
280280
if (c->strncpy_ || c->memset_nonzero) {
281-
if(!Token::Match(c->var->typeStartToken(), "char|wchar_t")) {
281+
if (!Token::Match(c->var->typeStartToken(), "char|wchar_t")) {
282282
continue;
283283
}
284284
checkUninitVar->uninitstringError(tok, c->var->name(), c->strncpy_);
285-
}
286-
else if (c->var->isPointer() && !c->var->isArray() && c->alloc)
285+
} else if (c->var->isPointer() && !c->var->isArray() && c->alloc)
287286
checkUninitVar->uninitdataError(tok, c->var->name());
288287
else
289288
checkUninitVar->uninitvarError(tok, c->var->name());

0 commit comments

Comments
 (0)