OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09db2c7
)
remove redundant const_cast<T>() in QDBusInterface::qt_metacast()
author
Ivailo Monev
<xakepa10@laimg.moc>
Thu, 9 Apr 2020 07:15:06 +0000
(07:15 +0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Thu, 9 Apr 2020 07:15:06 +0000
(07:15 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/dbus/qdbusinterface.cpp
patch
|
blob
|
history
diff --git
a/src/dbus/qdbusinterface.cpp
b/src/dbus/qdbusinterface.cpp
index
d8bdf2f
..
5b38af3
100644
(file)
--- a/
src/dbus/qdbusinterface.cpp
+++ b/
src/dbus/qdbusinterface.cpp
@@
-238,9
+238,9
@@
void *QDBusInterface::qt_metacast(const char *_clname)
{
if (!_clname) return 0;
if (!strcmp(_clname, "QDBusInterface"))
- return static_cast<void*>(
const_cast<QDBusInterface*>(this)
);
+ return static_cast<void*>(
this
);
if (d_func()->interface.toLatin1() == _clname)
- return static_cast<void*>(
const_cast<QDBusInterface*>(this)
);
+ return static_cast<void*>(
this
);
return QDBusAbstractInterface::qt_metacast(_clname);
}