Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
450
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
778686a9
Commit
778686a9
authored
4 years ago
by
Pierre Lamot
Browse files
Options
Downloads
Patches
Plain Diff
qt: move default member initialisation in header for MLBaseModel for uniformity
parent
f0fa740d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/gui/qt/medialibrary/mlbasemodel.cpp
+0
-5
0 additions, 5 deletions
modules/gui/qt/medialibrary/mlbasemodel.cpp
modules/gui/qt/medialibrary/mlbasemodel.hpp
+4
-4
4 additions, 4 deletions
modules/gui/qt/medialibrary/mlbasemodel.hpp
with
4 additions
and
9 deletions
modules/gui/qt/medialibrary/mlbasemodel.cpp
+
0
−
5
View file @
778686a9
...
...
@@ -27,16 +27,11 @@ static constexpr ssize_t COUNT_UNINITIALIZED =
MLBaseModel
::
MLBaseModel
(
QObject
*
parent
)
:
QAbstractListModel
(
parent
)
,
m_ml
(
nullptr
)
,
m_ml_event_handle
(
nullptr
,
[
this
](
vlc_ml_event_callback_t
*
cb
)
{
assert
(
m_ml
!=
nullptr
);
vlc_ml_event_unregister_callback
(
m_ml
,
cb
);
})
,
m_need_reset
(
false
)
{
m_sort
=
VLC_ML_SORTING_DEFAULT
;
m_sort_desc
=
false
;
connect
(
this
,
&
MLBaseModel
::
resetRequested
,
this
,
&
MLBaseModel
::
onResetRequested
);
}
...
...
This diff is collapsed.
Click to expand it.
modules/gui/qt/medialibrary/mlbasemodel.hpp
+
4
−
4
View file @
778686a9
...
...
@@ -142,15 +142,15 @@ public:
protected
:
MLItemId
m_parent
;
vlc_medialibrary_t
*
m_ml
;
vlc_medialibrary_t
*
m_ml
=
nullptr
;
MediaLib
*
m_mediaLib
=
nullptr
;
QString
m_search_pattern
;
vlc_ml_sorting_criteria_t
m_sort
;
bool
m_sort_desc
;
vlc_ml_sorting_criteria_t
m_sort
=
VLC_ML_SORTING_DEFAULT
;
bool
m_sort_desc
=
false
;
std
::
unique_ptr
<
vlc_ml_event_callback_t
,
std
::
function
<
void
(
vlc_ml_event_callback_t
*
)
>>
m_ml_event_handle
;
bool
m_need_reset
;
bool
m_need_reset
=
false
;
mutable
std
::
unique_ptr
<
ListCache
<
std
::
unique_ptr
<
MLItem
>>>
m_cache
;
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment