diff options
author | gregory guy <gregory-tde@laposte.net> | 2020-08-21 14:42:44 +0200 |
---|---|---|
committer | gregory guy <gregory-tde@laposte.net> | 2020-08-24 17:20:16 +0200 |
commit | a212e6154c5d748ef6068fc3539790d4c806bfc5 (patch) | |
tree | 75a5b5057a321546d4cb7b4ae9a220c492db7fbc /kpacman/board.cpp | |
parent | a451e44f4ac9838eca11731780be425a1f46a0b8 (diff) | |
download | tdepacman-a212e6154c5d748ef6068fc3539790d4c806bfc5.tar.gz tdepacman-a212e6154c5d748ef6068fc3539790d4c806bfc5.zip |
Remove some deprecated Qt2 stuff.
TQArray vs TQMemArray.
Signed-off-by: gregory guy <gregory-tde@laposte.net>
Diffstat (limited to 'kpacman/board.cpp')
-rw-r--r-- | kpacman/board.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kpacman/board.cpp b/kpacman/board.cpp index 618838d..95ad5f2 100644 --- a/kpacman/board.cpp +++ b/kpacman/board.cpp @@ -11,7 +11,7 @@ #include "board.h" #include "bitmaps.h" -Board::Board(int size) : TQArray<int> (size) +Board::Board(int size) : TQMemArray<int> (size) { sz = size; // set size of board @@ -58,7 +58,7 @@ void Board::init(Image image, TQString levelName) "or could not be opened for reading."); msg.replace(TQRegExp("@LEVELNAME@"), levelName); // TQMessageBox::information(0, i18n("Initialization Error"), msg); - printf("%s\n", msg.data()); + printf("%s\n", msg.local8Bit()); } else { map.fill(' ', BoardHeight*BoardWidth); int height = 0; @@ -75,7 +75,7 @@ void Board::init(Image image, TQString levelName) map.replace(height*BoardWidth, (line.length() > BoardWidth) ? BoardWidth : line.length(), - line.data()); + line.local8Bit()); height++; } @@ -93,7 +93,7 @@ void Board::init(Image image, TQString levelName) break; case Level : setup(demo_bits); break; - case File : setup((uchar *) map.data()); + case File : setup((uchar *) map.local8Bit().data()); break; default : break; } |