[Ktutorial-commits] SF.net SVN: ktutorial:[335] trunk/ktutorial
Status: Alpha
                
                Brought to you by:
                
                    danxuliu
                    
                
            | 
      
      
      From: <dan...@us...> - 2011-07-11 05:25:54
      
     | 
| Revision: 335
          http://ktutorial.svn.sourceforge.net/ktutorial/?rev=335&view=rev
Author:   danxuliu
Date:     2011-07-11 05:25:48 +0000 (Mon, 11 Jul 2011)
Log Message:
-----------
Fix "unused variable" compilation warnings.
Modified Paths:
--------------
    trunk/ktutorial/ktutorial-editor/src/serialization/TutorialWriter.cpp
    trunk/ktutorial/ktutorial-editor/src/view/WaitForWidget.cpp
    trunk/ktutorial/ktutorial-library/src/WaitForComposed.cpp
    trunk/ktutorial/ktutorial-library/src/WaitForStepActivation.cpp
    trunk/ktutorial/ktutorial-library/src/extendedinformation/WidgetHighlighter.cpp
Modified: trunk/ktutorial/ktutorial-editor/src/serialization/TutorialWriter.cpp
===================================================================
--- trunk/ktutorial/ktutorial-editor/src/serialization/TutorialWriter.cpp	2011-07-07 10:31:17 UTC (rev 334)
+++ trunk/ktutorial/ktutorial-editor/src/serialization/TutorialWriter.cpp	2011-07-11 05:25:48 UTC (rev 335)
@@ -236,6 +236,8 @@
 }
 
 void TutorialWriter::write(const WaitForStepActivation* waitForStepActivation) {
+    Q_UNUSED(waitForStepActivation);
+
     mXmlWriter->writeEmptyElement("waitForStepActivation");
 }
 
Modified: trunk/ktutorial/ktutorial-editor/src/view/WaitForWidget.cpp
===================================================================
--- trunk/ktutorial/ktutorial-editor/src/view/WaitForWidget.cpp	2011-07-07 10:31:17 UTC (rev 334)
+++ trunk/ktutorial/ktutorial-editor/src/view/WaitForWidget.cpp	2011-07-11 05:25:48 UTC (rev 335)
@@ -172,6 +172,8 @@
 
 void WaitForWidget::handleSelectionChanged(const QItemSelection& selected,
                                            const QItemSelection& deselected) {
+    Q_UNUSED(deselected);
+
     //Only single selections are supported
     Q_ASSERT(selected.count() <= 1);
     Q_ASSERT(deselected.count() <= 1);
Modified: trunk/ktutorial/ktutorial-library/src/WaitForComposed.cpp
===================================================================
--- trunk/ktutorial/ktutorial-library/src/WaitForComposed.cpp	2011-07-07 10:31:17 UTC (rev 334)
+++ trunk/ktutorial/ktutorial-library/src/WaitForComposed.cpp	2011-07-11 05:25:48 UTC (rev 335)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2008 by Daniel Calviño Sánchez                          *
+ *   Copyright (C) 2008-2011 by Daniel Calviño Sánchez                     *
  *   dan...@gm...                                                    *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -44,6 +44,8 @@
 //public slots:
 
 void WaitForComposed::childWaitEnd(WaitFor* waitFor) {
+    Q_UNUSED(waitFor);
+
     Q_ASSERT(mWaitFors.contains(waitFor));
 
     if (!isActive()) {
Modified: trunk/ktutorial/ktutorial-library/src/WaitForStepActivation.cpp
===================================================================
--- trunk/ktutorial/ktutorial-library/src/WaitForStepActivation.cpp	2011-07-07 10:31:17 UTC (rev 334)
+++ trunk/ktutorial/ktutorial-library/src/WaitForStepActivation.cpp	2011-07-11 05:25:48 UTC (rev 335)
@@ -60,6 +60,8 @@
 //private slots:
 
 void WaitForStepActivation::checkStepActivatedToEndTheWait(Step* step) {
+    Q_UNUSED(step);
+
     if (!isActive()) {
         return;
     }
Modified: trunk/ktutorial/ktutorial-library/src/extendedinformation/WidgetHighlighter.cpp
===================================================================
--- trunk/ktutorial/ktutorial-library/src/extendedinformation/WidgetHighlighter.cpp	2011-07-07 10:31:17 UTC (rev 334)
+++ trunk/ktutorial/ktutorial-library/src/extendedinformation/WidgetHighlighter.cpp	2011-07-11 05:25:48 UTC (rev 335)
@@ -87,6 +87,8 @@
 //protected:
 
 void WidgetHighlighter::paintEvent(QPaintEvent* event) {
+    Q_UNUSED(event);
+
     //Painting the WidgetHighlighter over its parent widget with a
     //semi-transparent color is the best I could get. However, it has some
     //flaws. For example, a QMenu does not highlight its menu button. And some
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |