[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegames/ksame
From:       Stephan Kulow <coolo () kde ! org>
Date:       2006-11-19 8:25:41
Message-ID: 1163924741.481607.13971.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 606070 by coolo:

not all supported compilers support these operators


 M  +1 -1      KSameWidget.cpp  
 M  +4 -4      board.cpp  
 M  +1 -1      board.h  


--- trunk/KDE/kdegames/ksame/KSameWidget.cpp #606069:606070
@@ -139,7 +139,7 @@
 
 void KSameWidget::newGame()
 {
-	if ( not confirmAbort() )
+	if ( !confirmAbort() )
 		return;
 
 	if ( m_randomBoardAction->isChecked() )
--- trunk/KDE/kdegames/ksame/board.cpp #606069:606070
@@ -151,7 +151,7 @@
 
 void KSame::Board::createItems()
 {
-	if ( ( !m_width ) or ( !m_height ) )
+	if ( !m_width || !m_height )
 		return;
 
 	if ( sceneRect().height()/m_height < sceneRect().width()/m_width )
@@ -211,12 +211,12 @@
 
 void KSame::Board::markHelper( int x, int y, quint8 color )
 {
-	if ( not validPosition( x, y ) )
+	if ( !validPosition( x, y ) )
 		return;
 
 	int index = map( x, y );
 
-	if ( ( m_boardData[ index ] == color ) && ( not m_markedStones.contains( qMakePair( x, y ) ) ) )
+	if ( ( m_boardData[ index ] == color ) && !m_markedStones.contains( qMakePair( x, y ) ) )
 	{
 		// Add this stone to the list of marked stones
 		m_markedStones << qMakePair( x, y );
@@ -360,7 +360,7 @@
 
 bool KSame::Board::undo()
 {
-	if ( not canUndo() )
+	if ( !canUndo() )
 		return false;
 
 	KSame::GameState lastState = m_undoList.pop();
--- trunk/KDE/kdegames/ksame/board.h #606069:606070
@@ -95,7 +95,7 @@
 			int markedStones() const { return m_markedStones.count(); }
 
 			bool changed() const { return m_changed; }
-			bool canUndo() const { return not m_undoList.empty(); }
+			bool canUndo() const { return !m_undoList.empty(); }
 			bool undo();
 
 			bool isGameOver() const;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic