Commit ccad847a authored by Harald Sitter's avatar Harald Sitter
Browse files

mtp: use qobject cast where possible

parent 0f1fe739
......@@ -310,7 +310,7 @@ void MTPStorage::updateStorageInfo()
LIBMTP_mtpdevice_t *MTPStorage::getDevice() const
{
return static_cast<MTPDevice *>(parent())->getDevice();
return qobject_cast<MTPDevice *>(parent())->getDevice();
}
KMTPFile MTPStorage::getFileFromPath(const QString &path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment