diff options
Diffstat (limited to 'knights/pgn.cpp')
-rw-r--r-- | knights/pgn.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/knights/pgn.cpp b/knights/pgn.cpp index 3723f8a..a0b4674 100644 --- a/knights/pgn.cpp +++ b/knights/pgn.cpp @@ -172,14 +172,14 @@ TQStringList* pgn::notation( const int format ) notation += TQString( " $%1" ).tqarg( TQString::number( (*IT).NAG ) ); } /* Insert RAVs */ - annon = RAV.tqfind( tmp ); + annon = RAV.find( tmp ); if( annon != NULL ) { notation += TQString( " (%1)" ).tqarg( annon->text ); showLineNumber = true; } /* Insert Annotations */ - annon = annotations.tqfind( tmp ); + annon = annotations.find( tmp ); if( annon != NULL ) { notation += TQString( " {%1}" ).tqarg( annon->text ); @@ -290,7 +290,7 @@ void pgn::init( void ) /* Build Date */ qdt = TQDateTime::tqcurrentDateTime(); TAG_Date = TQString("%1.%2.%3").tqarg(qdt.date().year(),4).tqarg(qdt.date().month(),2).tqarg(qdt.date().day(),2); - TAG_Date = TAG_Date.tqreplace( TQRegExp("\\s"), TQString("0") ); + TAG_Date = TAG_Date.replace( TQRegExp("\\s"), TQString("0") ); TAG_Time = qdt.time().toString(); TAG_Site = unamePtr.nodename; @@ -670,7 +670,7 @@ bool pgn::save( TQString URL ) { while( SAN.at( pos ) != ' ' ) pos--; - SAN = SAN.tqreplace( pos, 1, TQString("\n") ); + SAN = SAN.replace( pos, 1, TQString("\n") ); lastPos = pos; pos = lastPos + 80; } |