Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
medialibrary
Commits
4b561b9b
Commit
4b561b9b
authored
Jun 18, 2018
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IMedia: Constify labels() accessor
parent
cf5ce2cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
include/medialibrary/IMedia.h
include/medialibrary/IMedia.h
+1
-1
src/Media.cpp
src/Media.cpp
+1
-1
src/Media.h
src/Media.h
+1
-1
No files found.
include/medialibrary/IMedia.h
View file @
4b561b9b
...
...
@@ -121,7 +121,7 @@ class IMedia
virtual
bool
addLabel
(
LabelPtr
label
)
=
0
;
virtual
bool
removeLabel
(
LabelPtr
label
)
=
0
;
virtual
MoviePtr
movie
()
const
=
0
;
virtual
Query
<
ILabel
>
labels
()
=
0
;
virtual
Query
<
ILabel
>
labels
()
const
=
0
;
virtual
Query
<
IVideoTrack
>
videoTracks
()
=
0
;
virtual
Query
<
IAudioTrack
>
audioTracks
()
=
0
;
///
...
...
src/Media.cpp
View file @
4b561b9b
...
...
@@ -162,7 +162,7 @@ void Media::setShowEpisode( ShowEpisodePtr episode )
m_changed
=
true
;
}
Query
<
ILabel
>
Media
::
labels
()
Query
<
ILabel
>
Media
::
labels
()
const
{
static
const
std
::
string
req
=
"FROM "
+
policy
::
LabelTable
::
Name
+
" l "
"INNER JOIN LabelFileRelation lfr ON lfr.label_id = l.id_label "
...
...
src/Media.h
View file @
4b561b9b
...
...
@@ -109,7 +109,7 @@ class Media : public IMedia, public DatabaseHelpers<Media, policy::MediaTable>
void
setShowEpisode
(
ShowEpisodePtr
episode
);
virtual
bool
addLabel
(
LabelPtr
label
)
override
;
virtual
bool
removeLabel
(
LabelPtr
label
)
override
;
virtual
Query
<
ILabel
>
labels
()
override
;
virtual
Query
<
ILabel
>
labels
()
const
override
;
virtual
int
playCount
()
const
override
;
virtual
bool
increasePlayCount
()
override
;
virtual
bool
isFavorite
()
const
override
;
...
...
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