Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KIO Extras
Commits
ccad847a
Commit
ccad847a
authored
Jan 06, 2022
by
Harald Sitter
🏳️🌈
Browse files
mtp: use qobject cast where possible
parent
0f1fe739
Changes
1
Hide whitespace changes
Inline
Side-by-side
mtp/kiod_module/mtpstorage.cpp
View file @
ccad847a
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment