summaryrefslogtreecommitdiffstats
path: root/kpacman/board.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-09-01 12:36:09 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-09-01 12:36:09 +0200
commit40420b140dae57640a553643766112af9902b7b0 (patch)
tree77b8670df921d1c9c2bc22a5f713bb5fac2cf28f /kpacman/board.cpp
parent7e43acd8185cad93e5aeb91b199a89bd8b3eb069 (diff)
downloadtdepacman-40420b140dae57640a553643766112af9902b7b0.tar.gz
tdepacman-40420b140dae57640a553643766112af9902b7b0.zip
Added controlled conversions to char* instead of automatic
ascii conversions. Removed unnecessary conversions to char*. The definition of -UTQT_NO_ASCII_CAST is no longer needed. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kpacman/board.cpp')
-rw-r--r--kpacman/board.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kpacman/board.cpp b/kpacman/board.cpp
index 95ad5f2..8a07310 100644
--- a/kpacman/board.cpp
+++ b/kpacman/board.cpp
@@ -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.local8Bit());
+ printf("%s\n", msg.local8Bit().data());
} 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.local8Bit());
+ line.latin1());
height++;
}
@@ -93,7 +93,7 @@ void Board::init(Image image, TQString levelName)
break;
case Level : setup(demo_bits);
break;
- case File : setup((uchar *) map.local8Bit().data());
+ case File : setup(map.latin1());
break;
default : break;
}