diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 24c5cdc2737fe0044b11a12359606973eb93fc0b (patch) | |
tree | a670701ebff60c73e9f32aab588e9b3d395d74f9 /kenolaba/Board.cpp | |
parent | f6000cffbc89072156cad7866d179fbd622df317 (diff) | |
download | tdegames-24c5cdc2737fe0044b11a12359606973eb93fc0b.tar.gz tdegames-24c5cdc2737fe0044b11a12359606973eb93fc0b.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kenolaba/Board.cpp')
-rw-r--r-- | kenolaba/Board.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kenolaba/Board.cpp b/kenolaba/Board.cpp index 119557d2..d939ad09 100644 --- a/kenolaba/Board.cpp +++ b/kenolaba/Board.cpp @@ -1386,13 +1386,13 @@ int Board::setASCIIState(const TQString& state) int color2Count = 0; /* get moveNo if supplied */ - if ((index = state.tqfind("#"))>=0) + if ((index = state.find("#"))>=0) moveNo = state.mid(index+1,3).toInt(); int f=12, row=0, rowEnd = 17; char c = ' '; - index=state.tqfind("/"); + index=state.find("/"); while(index>=0) { @@ -1420,17 +1420,17 @@ int Board::setASCIIState(const TQString& state) if (f == rowEnd) { row++; if (row <4) { - index = state.tqfind("/",index); + index = state.find("/",index); f = 12 + row*11; rowEnd = row*12+17; } else if (row==4) { - index = state.tqfind("|",index); + index = state.find("|",index); f = 56; rowEnd = 65; } else if (row <9) { - index = state.tqfind("\\",index); + index = state.find("\\",index); f = 8 + row*12; rowEnd = 21 + row*11; } |