]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak some comments and formatting.
authorMarco van Wieringen <mvw@planets.elm.net>
Thu, 16 Feb 2012 22:52:39 +0000 (23:52 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:33 +0000 (14:50 +0200)
bacula/src/qt-console/medialist/medialist.cpp
bacula/src/qt-console/medialist/mediaview.cpp
bacula/src/qt-console/restore/brestore.cpp
bacula/src/qt-console/storage/storage.cpp
bacula/src/qt-console/util/fmtwidgetitem.cpp

index 05cbda83671295c2ca8eb34d899ef43cfcd70522..670241f381246ea717b9b9b11dbf2fac354d9fb4 100644 (file)
@@ -207,8 +207,7 @@ void MediaList::populateTree()
             int inchanger = fld.next().toInt();
             if (inchanger) {
                mediaitem.setNumericFld(index++, fld.next()); 
-            }
-            else {
+            } else {
                /* volume not in changer, show blank slot */
                mediaitem.setNumericFld(index++, ""); 
                fld.next();
index 6c316879642fd9ec62f3813f9c5424969d7885c6..7a44e15652b2b4e3026f86a5b4179f7d209698ef 100644 (file)
@@ -336,7 +336,7 @@ void MediaView::populateTable()
 
       foreach (resultline, results) { // should have only one result
          int index = 0;
-         QString Slot, VolBytes, MediaType, LastWritten, VolStatus;
+         QString VolBytes, MediaType, LastWritten, VolStatus;
          fieldlist = resultline.split("\t");
          if (fieldlist.size() != 10) {
             continue;
@@ -350,8 +350,8 @@ void MediaView::populateTable()
          /* Online */
          mediaitem.setInChanger(index++, fld.next());
 
-         Slot = fld.next();            // Slot
-         mediaitem.setNumericFld(index++, Slot);
+         /* Slot */
+         mediaitem.setNumericFld(index++, fld.next());
 
          MediaType = fld.next();
          VolStatus = fld.next();
index f1b6b2905d8231a8658a3fdf9fb7bebd7246334c..f397b4ee2d765ffc5c89ebab62214ee5c655f4f9 100644 (file)
@@ -286,7 +286,7 @@ void bRestore::displayFileVersion(QString pathid, QString fnid,
          //PathId, FilenameId, fileid, jobid, lstat, Md5, VolName, Inchanger
          fieldlist = resultline.split("\t");
          TableItemFormatter item(*FileRevisions, row++);
-         item.setInChanger(col++, fieldlist.at(7));    // inchanger
+         item.setInChanger(col++, fieldlist.at(7)); // inchanger
          item.setTextFld(col++, fieldlist.at(6)); // Volume
          item.setNumericFld(col++, fieldlist.at(3)); // JobId
          decode_stat(fieldlist.at(4).toLocal8Bit().data(), 
index 996d0eb107beec090579cea56fb57c8f4fa83ee7..7a3021cc9c2e49ac8eed34880a12e158366e6ca0 100644 (file)
@@ -146,7 +146,7 @@ void Storage::populateTree()
             QStringListIterator fld(fieldlist);
  
             /* storage id */
-            storageItem.setNumericFld(index++, fld.next() );
+            storageItem.setNumericFld(index++, fld.next());
 
             /* changer */
             QString changer = fld.next();
index b98bdcb4fb0424ea8d7b11e5549be0f5818a30a5..d284ac2f144c168b7095c4c76e50badcff95ea84 100644 (file)
@@ -283,13 +283,13 @@ void ItemFormatterBase::setBoolFld(int index, int fld, bool center)
 void ItemFormatterBase::setNumericFld(int index, const QString &fld)
 {
    setRightFld(index, fld.trimmed());
-   setSortValue(index, fld.toDouble() );
+   setSortValue(index, fld.toDouble());
 }
 
 void ItemFormatterBase::setNumericFld(int index, const QString &fld, const QVariant &sortval)
 {
    setRightFld(index, fld.trimmed());
-   setSortValue(index, sortval );
+   setSortValue(index, sortval);
 }
 
 void ItemFormatterBase::setBytesFld(int index, const QString &fld)