Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
e5579874
Commit
e5579874
authored
Feb 19, 2010
by
Hugo Beauzee-Luyssen
Browse files
Don't use dynamic cast if they are useless.
And when they are, please, check the return value...
parent
b3a50081
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Library/Library.cpp
View file @
e5579874
...
...
@@ -68,7 +68,7 @@ Library::clip( const QUuid& uuid )
{
Media
*
media
=
m_medias
.
value
(
mediaUuid
);
if
(
media
!=
NULL
&&
media
->
clips
()
->
contains
(
uuid
)
)
return
dynamic_cast
<
Clip
*>
(
getElementByUuid
(
*
media
->
clips
(),
uuid
)
);
return
getElementByUuid
(
*
media
->
clips
(),
uuid
);
}
return
NULL
;
}
...
...
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