Skip to content

Commit 23b816f

Browse files
committed
Astyle fixes.
1 parent 4644f8b commit 23b816f

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

gui/applicationlist.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void ApplicationList::LoadSettings(QSettings &programSettings)
3636
QStringList paths = programSettings.value(tr("Application paths"), QStringList()).toStringList();
3737
if (names.size() == paths.size())
3838
{
39-
for (int i = 0;i < names.size();i++)
39+
for (int i = 0; i < names.size(); i++)
4040
{
4141
AddApplicationType(names[i], paths[i]);
4242
}
@@ -48,7 +48,7 @@ void ApplicationList::SaveSettings(QSettings &programSettings)
4848
QStringList names;
4949
QStringList paths;
5050

51-
for (int i = 0;i < GetApplicationCount();i++)
51+
for (int i = 0; i < GetApplicationCount(); i++)
5252
{
5353
names << GetApplicationName(i);
5454
paths << GetApplicationPath(i);
@@ -128,7 +128,7 @@ void ApplicationList::MoveFirst(const int index)
128128
void ApplicationList::Copy(ApplicationList &list)
129129
{
130130
Clear();
131-
for (int i = 0;i < list.GetApplicationCount();i++)
131+
for (int i = 0; i < list.GetApplicationCount(); i++)
132132
{
133133
AddApplicationType(list.GetApplicationName(i), list.GetApplicationPath(i));
134134
}

gui/applicationlist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class ApplicationList : public QObject
6262
*
6363
*/
6464
QString Path;
65-
}ApplicationType;
65+
} ApplicationType;
6666

6767
ApplicationList();
6868
virtual ~ApplicationList();

gui/resultstree.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void ResultsTree::AddErrorItem(const QString &file,
108108
item->setData(QVariant(data));
109109

110110
//Add backtrace files as children
111-
for (int i = 1;i < files.size() && i < lines.size();i++)
111+
for (int i = 1; i < files.size() && i < lines.size(); i++)
112112
{
113113
AddBacktraceFiles(item,
114114
StripPath(files[i], false),
@@ -204,7 +204,7 @@ void ResultsTree::Clear()
204204

205205
void ResultsTree::LoadSettings()
206206
{
207-
for (int i = 0;i < mModel.columnCount();i++)
207+
for (int i = 0; i < mModel.columnCount(); i++)
208208
{
209209
//mFileTree.columnWidth(i);
210210
QString temp = QString(tr("Result column %1 width")).arg(i);
@@ -218,7 +218,7 @@ void ResultsTree::LoadSettings()
218218

219219
void ResultsTree::SaveSettings()
220220
{
221-
for (int i = 0;i < mModel.columnCount();i++)
221+
for (int i = 0; i < mModel.columnCount(); i++)
222222
{
223223
QString temp = QString(tr("Result column %1 width")).arg(i);
224224
mSettings.setValue(temp, columnWidth(i));
@@ -241,7 +241,7 @@ void ResultsTree::RefreshTree()
241241
//Get the amount of files in the tree
242242
int filecount = mModel.rowCount();
243243

244-
for (int i = 0;i < filecount;i++)
244+
for (int i = 0; i < filecount; i++)
245245
{
246246
//Get file i
247247
QStandardItem *file = mModel.item(i, 0);
@@ -256,7 +256,7 @@ void ResultsTree::RefreshTree()
256256
//By default it shouldn't be visible
257257
bool show = false;
258258

259-
for (int j = 0;j < errorcount;j++)
259+
for (int j = 0; j < errorcount; j++)
260260
{
261261
//Get the error itself
262262
QStandardItem *child = file->child(j, 0);
@@ -346,7 +346,7 @@ void ResultsTree::contextMenuEvent(QContextMenuEvent * e)
346346
if (mContextItem && mApplications.GetApplicationCount() > 0 && mContextItem->parent())
347347
{
348348
//Go through all applications and add them to the context menu
349-
for (int i = 0;i < mApplications.GetApplicationCount();i++)
349+
for (int i = 0; i < mApplications.GetApplicationCount(); i++)
350350
{
351351
//Create an action for the application
352352
QAction *start = new QAction(mApplications.GetApplicationName(i), &menu);
@@ -393,7 +393,7 @@ void ResultsTree::contextMenuEvent(QContextMenuEvent * e)
393393
if (mContextItem && mApplications.GetApplicationCount() > 0 && mContextItem->parent())
394394
{
395395
//Disconnect all signals
396-
for (int i = 0;i < actions.size();i++)
396+
for (int i = 0; i < actions.size(); i++)
397397
{
398398

399399
disconnect(actions[i], SIGNAL(triggered()), signalMapper, SLOT(map()));
@@ -537,7 +537,7 @@ void ResultsTree::SaveResults(Report *report)
537537
{
538538
report->WriteHeader();
539539

540-
for (int i = 0;i < mModel.rowCount();i++)
540+
for (int i = 0; i < mModel.rowCount(); i++)
541541
{
542542
QStandardItem *item = mModel.item(i, 0);
543543
SaveErrors(report, item);
@@ -555,7 +555,7 @@ void ResultsTree::SaveErrors(Report *report, QStandardItem *item)
555555

556556
//qDebug() << item->text() << "has" << item->rowCount() << "errors";
557557

558-
for (int i = 0;i < item->rowCount();i++)
558+
for (int i = 0; i < item->rowCount(); i++)
559559
{
560560
QStandardItem *error = item->child(i, 0);
561561

@@ -666,7 +666,7 @@ void ResultsTree::RefreshFilePaths(QStandardItem *item)
666666
bool updated = false;
667667

668668
//Loop through all errors within this file
669-
for (int i = 0;i < item->rowCount();i++)
669+
for (int i = 0; i < item->rowCount(); i++)
670670
{
671671
//Get error i
672672
QStandardItem *error = item->child(i, 0);
@@ -697,7 +697,7 @@ void ResultsTree::RefreshFilePaths(QStandardItem *item)
697697
if (error->rowCount() <= files.size() - 1)
698698
{
699699
//Loop through all files within the error
700-
for (int j = 0;j < error->rowCount();j++)
700+
for (int j = 0; j < error->rowCount(); j++)
701701
{
702702
//Get file
703703
QStandardItem *file = error->child(j, 0);
@@ -725,7 +725,7 @@ void ResultsTree::RefreshFilePaths()
725725
qDebug("Refreshing file paths");
726726

727727
//Go through all file items (these are parent items that contain the errors)
728-
for (int i = 0;i < mModel.rowCount();i++)
728+
for (int i = 0; i < mModel.rowCount(); i++)
729729
{
730730
RefreshFilePaths(mModel.item(i, 0));
731731
}

gui/threadhandler.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void ThreadHandler::Check(Settings settings, bool recheck)
6767
mRunningThreadCount = mResults.GetFileCount();
6868
}
6969

70-
for (int i = 0;i < mRunningThreadCount;i++)
70+
for (int i = 0; i < mRunningThreadCount; i++)
7171
{
7272
mThreads[i]->Check(settings);
7373
}
@@ -90,7 +90,7 @@ void ThreadHandler::SetThreadCount(const int count)
9090
//Remove unused old threads
9191
RemoveThreads();
9292
//Create new threads
93-
for (int i = mThreads.size();i < count;i++)
93+
for (int i = mThreads.size(); i < count; i++)
9494
{
9595
mThreads << new CheckThread(mResults);
9696
connect(mThreads.last(), SIGNAL(Done()),
@@ -104,7 +104,7 @@ void ThreadHandler::SetThreadCount(const int count)
104104

105105
void ThreadHandler::RemoveThreads()
106106
{
107-
for (int i = 0;i < mThreads.size();i++)
107+
for (int i = 0; i < mThreads.size(); i++)
108108
{
109109
mThreads[i]->terminate();
110110
disconnect(mThreads.last(), SIGNAL(Done()),
@@ -129,7 +129,7 @@ void ThreadHandler::ThreadDone()
129129

130130
void ThreadHandler::Stop()
131131
{
132-
for (int i = 0;i < mThreads.size();i++)
132+
for (int i = 0; i < mThreads.size(); i++)
133133
{
134134
mThreads[i]->stop();
135135
}

0 commit comments

Comments
 (0)