Browse Source

Remove unused variable warnings.

Julien Finet 14 years ago
parent
commit
a56c3cea7f
2 changed files with 2 additions and 5 deletions
  1. 1 3
      Libs/Widgets/ctkCheckableHeaderView.cpp
  2. 1 2
      Libs/Widgets/ctkCollapsibleButton.cpp

+ 1 - 3
Libs/Widgets/ctkCheckableHeaderView.cpp

@@ -162,7 +162,6 @@ void ctkCheckableHeaderViewPrivate::setCheckState(
 void ctkCheckableHeaderViewPrivate::setIndexCheckState(
   const QModelIndex& index, Qt::CheckState checkState)
 {
-  Q_Q(ctkCheckableHeaderView);
   bool checkable = false;
   this->checkState(index, &checkable);
   if (!checkable && !this->ForceCheckability)
@@ -462,10 +461,9 @@ void ctkCheckableHeaderView::toggleCheckState(int section)
 //-----------------------------------------------------------------------------
 void ctkCheckableHeaderView::setCheckState(int section, Qt::CheckState checkState)
 {
-  Q_D(ctkCheckableHeaderView);
   QAbstractItemModel *current = this->model();
   if(current == 0)
-    {    
+    {
     return;
     }
   current->setHeaderData(section, this->orientation(),

+ 1 - 2
Libs/Widgets/ctkCollapsibleButton.cpp

@@ -109,9 +109,8 @@ void ctkCollapsibleButtonPrivate::init()
 //-----------------------------------------------------------------------------
 void ctkCollapsibleButtonPrivate::setChildVisibility(QWidget* childWidget)
 {
-  Q_Q(ctkCollapsibleButton);
   this->ForcingVisibility = true;
- 
+
   bool visible= !this->Collapsed &&
     (childWidget->property("visibilityToParent").isValid() ?
        childWidget->property("visibilityToParent").toBool() : true);