Commit 9894967f authored by Max Kellermann's avatar Max Kellermann

db/Selection: move `bool` attribute to the end

May allow a better memory layout.
parent 92da483e
......@@ -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 */
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment