Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLMC
Commits
8da15a5a
Commit
8da15a5a
authored
Mar 30, 2010
by
Ludovic Fauvet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Returning -1 from unsigned method is most of the time a very bad idea.
parent
cb73cf5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/Gui/timeline/AbstractGraphicsMediaItem.cpp
src/Gui/timeline/AbstractGraphicsMediaItem.cpp
+3
-1
No files found.
src/Gui/timeline/AbstractGraphicsMediaItem.cpp
View file @
8da15a5a
...
...
@@ -80,7 +80,9 @@ quint32 AbstractGraphicsMediaItem::trackNumber()
if
(
graphicsTrack
)
return
graphicsTrack
->
trackNumber
();
}
return
-
1
;
//FIXME We should probably return a negative number here (using a signed type!)
qWarning
(
"Things can go wrong beyond that point!"
);
return
0
;
}
void
AbstractGraphicsMediaItem
::
setTrack
(
GraphicsTrack
*
track
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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