Browse Source

Fixed some unused variable warnings

Closes #407
Marco Nolden 11 years ago
parent
commit
b414de4019
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Libs/DICOM/Core/ctkDICOMModel.cpp

+ 1 - 1
Libs/DICOM/Core/ctkDICOMModel.cpp

@@ -792,6 +792,7 @@ bool ctkDICOMModel::setParentData(const QModelIndex &index, const QVariant &valu
     }
   else
     {
+#ifdef CHECKABLE_COLUMNS
     bool checkedExist = false;
     bool partiallyCheckedExist = false;
     bool uncheckedExist = false;
@@ -813,7 +814,6 @@ bool ctkDICOMModel::setParentData(const QModelIndex &index, const QVariant &valu
         }
       }
 
-#ifdef CHECKABLE_COLUMNS
     if(partiallyCheckedExist || (checkedExist && uncheckedExist))
       {
       node->Data[Qt::CheckStateRole].toUInt() = Qt::PartiallyChecked;