summaryrefslogtreecommitdiffstats
path: root/tdewallet/kwmapeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdewallet/kwmapeditor.cpp')
-rw-r--r--tdewallet/kwmapeditor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tdewallet/kwmapeditor.cpp b/tdewallet/kwmapeditor.cpp
index a6c09b4..32ff65e 100644
--- a/tdewallet/kwmapeditor.cpp
+++ b/tdewallet/kwmapeditor.cpp
@@ -76,9 +76,9 @@ KWMapEditor::~KWMapEditor() {
void KWMapEditor::erase() {
- const TQObject *o = TQT_TQOBJECT(const_cast<TQT_BASE_OBJECT_NAME*>(sender()));
+ const TQObject *o = sender();
for (int i = 0; i < numRows(); i++) {
- if (TQT_BASE_OBJECT_CONST(cellWidget(i, 0)) == TQT_BASE_OBJECT_CONST(o)) {
+ if (cellWidget(i, 0) == o) {
removeRow(i);
break;
}