@@ -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
205205void 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
219219void 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 }
0 commit comments