mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 11:22:58 +00:00
remove redundant const_cast<T>() in QDBusInterface::qt_metacast()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
09db2c7c5b
commit
6dd7238a82
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue