Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
medialibrary
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
57
Issues
57
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
medialibrary
Commits
8d4e6281
Commit
8d4e6281
authored
Jul 26, 2018
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Album: Mark title as immutable
parent
0e06b7d0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
src/Album.cpp
src/Album.cpp
+9
-9
src/Album.h
src/Album.h
+1
-1
No files found.
src/Album.cpp
View file @
8d4e6281
...
...
@@ -45,16 +45,16 @@ int64_t Album::* const Album::Table::PrimaryKey = &Album::m_id;
Album
::
Album
(
MediaLibraryPtr
ml
,
sqlite
::
Row
&
row
)
:
m_ml
(
ml
)
,
m_id
(
row
.
load
<
decltype
(
m_id
)
>
(
0
)
)
,
m_title
(
row
.
load
<
decltype
(
m_title
)
>
(
1
)
)
,
m_artistId
(
row
.
load
<
decltype
(
m_artistId
)
>
(
2
)
)
,
m_releaseYear
(
row
.
load
<
decltype
(
m_releaseYear
)
>
(
3
)
)
,
m_shortSummary
(
row
.
load
<
decltype
(
m_shortSummary
)
>
(
4
)
)
,
m_thumbnailId
(
row
.
load
<
decltype
(
m_thumbnailId
)
>
(
5
)
)
,
m_nbTracks
(
row
.
load
<
decltype
(
m_nbTracks
)
>
(
6
)
)
,
m_duration
(
row
.
load
<
decltype
(
m_duration
)
>
(
7
)
)
,
m_isPresent
(
row
.
load
<
decltype
(
m_isPresent
)
>
(
8
)
)
{
row
>>
m_id
>>
m_title
>>
m_artistId
>>
m_releaseYear
>>
m_shortSummary
>>
m_thumbnailId
>>
m_nbTracks
>>
m_duration
>>
m_isPresent
;
}
Album
::
Album
(
MediaLibraryPtr
ml
,
const
std
::
string
&
title
,
int64_t
thumbnailId
)
...
...
src/Album.h
View file @
8d4e6281
...
...
@@ -124,7 +124,7 @@ class Album : public IAlbum, public DatabaseHelpers<Album>
protected:
MediaLibraryPtr
m_ml
;
int64_t
m_id
;
std
::
string
m_title
;
const
std
::
string
m_title
;
int64_t
m_artistId
;
unsigned
int
m_releaseYear
;
std
::
string
m_shortSummary
;
...
...
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