traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/core InputEngine.cpp


From: Nicola Doebelin
Subject: [Traverso-commit] traverso/src/core InputEngine.cpp
Date: Wed, 06 Aug 2008 13:56:39 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Nicola Doebelin <n_doebelin>    08/08/06 13:56:39

Modified files:
        src/core       : InputEngine.cpp 

Log message:
        Fixed some compiler warnings. Remon, could you check it please? There 
are several possibilities to set the parentheses.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/InputEngine.cpp?cvsroot=traverso&r1=1.72&r2=1.73

Patches:
Index: InputEngine.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/InputEngine.cpp,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -b -r1.72 -r1.73
--- InputEngine.cpp     2 Aug 2008 15:55:22 -0000       1.72
+++ InputEngine.cpp     6 Aug 2008 13:56:39 -0000       1.73
@@ -252,7 +252,7 @@
                return -1;
        }
        
-       if ( action && (action->type == HOLDKEY) || (action->type == HKEY2)) {
+       if ( action && ((action->type == HOLDKEY) || (action->type == HKEY2))) {
                info().information(tr("Hold actions are not supported from 
Context Menu"));
                return -1;
        }
@@ -1618,8 +1618,8 @@
 // Number colector
 bool InputEngine::check_number_collection(int eventcode)
 {
-       if ((eventcode >= Qt::Key_0) && (eventcode <= Qt::Key_9) || 
-            eventcode == Qt::Key_Comma || eventcode == Qt::Key_Period) {
+       if (((eventcode >= Qt::Key_0) && (eventcode <= Qt::Key_9)) || 
+            (eventcode == Qt::Key_Comma) || (eventcode == Qt::Key_Period)) {
                sCollectedNumber.append( QChar(eventcode) ); // it had a ",1" 
complement after fact1_k1... why?
                PMESG("Collected %s so far...", QS_C(sCollectedNumber) ) ;
                QString sn = "NUMBER " + sCollectedNumber;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]