Sfoglia il codice sorgente

Revert function parameter name of ctkModelTester to "enable"

Julien Finet 14 anni fa
parent
commit
d59d7b87ff
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 2 2
      Libs/Core/ctkModelTester.cpp
  2. 1 1
      Libs/Core/ctkModelTester.h

+ 2 - 2
Libs/Core/ctkModelTester.cpp

@@ -166,10 +166,10 @@ bool ctkModelTester::nestedInserts()const
 
 
 //-----------------------------------------------------------------------------
-void ctkModelTester::setTestDataEnabled( bool testDataEnabledValue )
+void ctkModelTester::setTestDataEnabled( bool enable )
 {
   Q_D(ctkModelTester);
-  d->TestDataEnabled = testDataEnabledValue;
+  d->TestDataEnabled = enable;
 }
 
 //-----------------------------------------------------------------------------

+ 1 - 1
Libs/Core/ctkModelTester.h

@@ -90,7 +90,7 @@ public:
   /// model index is valid too.
   /// You can disable the test if you are ok with temporary invalid display
   /// roles.
-  void setTestDataEnabled(bool testDataEnabledValue);
+  void setTestDataEnabled(bool enable);
   bool testDataEnabled()const;
 
   /// When Verbose is enabled, message will be printed to standard or error output.