summaryrefslogtreecommitdiffstats
path: root/kpacman/painter.cpp
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2020-08-21 14:42:44 +0200
committergregory guy <gregory-tde@laposte.net>2020-08-24 17:20:16 +0200
commita212e6154c5d748ef6068fc3539790d4c806bfc5 (patch)
tree75a5b5057a321546d4cb7b4ae9a220c492db7fbc /kpacman/painter.cpp
parenta451e44f4ac9838eca11731780be425a1f46a0b8 (diff)
downloadtdepacman-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/painter.cpp')
-rw-r--r--kpacman/painter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kpacman/painter.cpp b/kpacman/painter.cpp
index 256afe0..16c0083 100644
--- a/kpacman/painter.cpp
+++ b/kpacman/painter.cpp
@@ -70,7 +70,7 @@ TQPtrList<TQPixmap> *Painter::loadPixmap(TQWidget *parent, TQString pixmapName,
"or is of an unknown format.");
msg.replace(TQRegExp("@PIXMAPNAME@"), pixmapName);
// TQMessageBox::critical(parent, i18n("Initialization Error"), msg);
- printf("%s\n", msg.data());
+ printf("%s\n", msg.local8Bit());
return 0;
}
@@ -668,7 +668,7 @@ TQString Painter::decodeHexOctString(TQString s)
return s;
}
-void Painter::fillScoreString(TQStrList &list, TQArray<int> &values)
+void Painter::fillScoreString(TQStrList &list, TQMemArray<int> &values)
{
if( !list.isEmpty())
list.clear();
@@ -692,11 +692,11 @@ void Painter::fillScoreString(TQStrList &list, TQArray<int> &values)
s.insert(0, char (values[i] / 1000 + 0x10));
}
- list.append(s.data());
+ list.append(s.local8Bit());
}
}
-void Painter::fillArray(TQArray<int> &array, TQString values, int max)
+void Painter::fillArray(TQMemArray<int> &array, TQString values, int max)
{
array.resize(max);
int last = 0;