summaryrefslogtreecommitdiffstats
path: root/knights/proto_uci.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:37:27 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:37:27 -0600
commita19492b5502371785de5749c2b12bbdbd012fc7a (patch)
tree8cbd3737894d9df68134a8308357e5f869c2beab /knights/proto_uci.cpp
parentdd4501d85d9c879f7322c74c6f37cfb0e813e1bb (diff)
downloadknights-a19492b5502371785de5749c2b12bbdbd012fc7a.tar.gz
knights-a19492b5502371785de5749c2b12bbdbd012fc7a.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'knights/proto_uci.cpp')
-rw-r--r--knights/proto_uci.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/knights/proto_uci.cpp b/knights/proto_uci.cpp
index 45b5eca..8aa39a1 100644
--- a/knights/proto_uci.cpp
+++ b/knights/proto_uci.cpp
@@ -76,13 +76,13 @@ void proto_uci::parse( const Command &command )
}
if( FEN.isEmpty() )
{
- emit output( TQString("position startpos moves %1").tqarg( cmd.getData() ) );
+ emit output( TQString("position startpos moves %1").arg( cmd.getData() ) );
}
else
{
- emit output( TQString("position fen %1 moves %2").tqarg( FEN ).tqarg( cmd.getData() ) );
+ emit output( TQString("position fen %1 moves %2").arg( FEN ).arg( cmd.getData() ) );
}
- emit output( TQString("go wtime %1 btime %2 depth %3").tqarg( cmd.getWhiteTime() ).tqarg( cmd.getBlackTime() ).tqarg( difficulty ) );
+ emit output( TQString("go wtime %1 btime %2 depth %3").arg( cmd.getWhiteTime() ).arg( cmd.getBlackTime() ).arg( difficulty ) );
break;
/* Command: Set Difficulty */
@@ -105,13 +105,13 @@ void proto_uci::parse( const Command &command )
hintMode = TRUE;
if( FEN.isEmpty() )
{
- emit output( TQString("position startpos moves %1").tqarg( cmd.getData() ) );
+ emit output( TQString("position startpos moves %1").arg( cmd.getData() ) );
}
else
{
- emit output( TQString("position fen %1 moves %2").tqarg( FEN ).tqarg( cmd.getData() ) );
+ emit output( TQString("position fen %1 moves %2").arg( FEN ).arg( cmd.getData() ) );
}
- emit output( TQString("go wtime %1 btime %2 depth %3").tqarg( cmd.getWhiteTime() ).tqarg( cmd.getBlackTime() ).tqarg( difficulty ) );
+ emit output( TQString("go wtime %1 btime %2 depth %3").arg( cmd.getWhiteTime() ).arg( cmd.getBlackTime() ).arg( difficulty ) );
break;
/* Command: Play White */
@@ -154,8 +154,8 @@ void proto_uci::parse( const TQString &string )
{
/* The Engine Gives a Hint */
hintMode = FALSE;
-// emit output( Command( myID, CMD_Hint, i18n( "%1 suggests this move:\n%2" ).tqarg( engineName ).tqarg( strList[1] ) ) );
- emit output( Command( myID, CMD_Hint, TQString( "%1 suggests this move:\n%2" ).tqarg( engineName ).tqarg( strList[1] ) ) );
+// emit output( Command( myID, CMD_Hint, i18n( "%1 suggests this move:\n%2" ).arg( engineName ).arg( strList[1] ) ) );
+ emit output( Command( myID, CMD_Hint, TQString( "%1 suggests this move:\n%2" ).arg( engineName ).arg( strList[1] ) ) );
}
else
{
@@ -197,8 +197,8 @@ void proto_uci::parse( const TQString &string )
{
if( strList[1] == "error" )
{
-// emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 did not pass it's copy protection check." ).tqarg( engineName ) ) );
- emit output( Command( myID, CMD_Tell_User_Error, TQString( "%1 did not pass it's copy protection check." ).tqarg( engineName ) ) );
+// emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 did not pass it's copy protection check." ).arg( engineName ) ) );
+ emit output( Command( myID, CMD_Tell_User_Error, TQString( "%1 did not pass it's copy protection check." ).arg( engineName ) ) );
}
}
}