summaryrefslogtreecommitdiffstats
path: root/ksnake/level.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /ksnake/level.cpp
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz
tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksnake/level.cpp')
-rw-r--r--ksnake/level.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ksnake/level.cpp b/ksnake/level.cpp
index 0ea100f0..5ece0a1f 100644
--- a/ksnake/level.cpp
+++ b/ksnake/level.cpp
@@ -85,7 +85,7 @@ void Level::initBoard(const TQImage &image)
uchar *b;
for ( int y = 0;y < image.height();y++ ) {
- b = image.scanLine(y);
+ b = const_cast<TQImage&>(image).scanLine(y);
for ( int x = 0;x < image.width();x++ ) {
if ( image.bitOrder() == TQImage::BigEndian ) {