db/Selection: move bool attribute to the end

May allow a better memory layout.
This commit is contained in:
Max Kellermann 2018-09-02 10:42:54 +02:00
parent 92da483ecd
commit 9894967fcb
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@
DatabaseSelection::DatabaseSelection(const char *_uri, bool _recursive,
const SongFilter *_filter) noexcept
:uri(_uri), recursive(_recursive), filter(_filter)
:uri(_uri), filter(_filter), recursive(_recursive)
{
/* optimization: if the caller didn't specify a base URI, pick
the one from SongFilter */

View File

@ -34,13 +34,13 @@ struct DatabaseSelection {
*/
std::string uri;
const SongFilter *filter;
/**
* Recursively search all sub directories?
*/
bool recursive;
const SongFilter *filter;
DatabaseSelection(const char *_uri, bool _recursive,
const SongFilter *_filter=nullptr) noexcept;