Commit e03f8263 authored by Rosen Penev's avatar Rosen Penev

const reference conversion

Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com>
parent d53d85bd
...@@ -316,7 +316,7 @@ SimpleDatabase::Visit(const DatabaseSelection &selection, ...@@ -316,7 +316,7 @@ SimpleDatabase::Visit(const DatabaseSelection &selection,
if (r.rest.find('/') == std::string_view::npos) { if (r.rest.find('/') == std::string_view::npos) {
if (visit_song) { if (visit_song) {
Song *song = r.directory->FindSong(r.rest); const Song *song = r.directory->FindSong(r.rest);
if (song != nullptr) { if (song != nullptr) {
const auto song2 = song->Export(); const auto song2 = song->Export();
if (selection.Match(song2)) if (selection.Match(song2))
......
...@@ -84,7 +84,7 @@ try { ...@@ -84,7 +84,7 @@ try {
} }
bool bool
directory_child_access(Storage &storage, const Directory &directory, directory_child_access(const Storage &storage, const Directory &directory,
std::string_view name, int mode) noexcept std::string_view name, int mode) noexcept
{ {
#ifdef _WIN32 #ifdef _WIN32
......
...@@ -55,7 +55,7 @@ directory_child_is_regular(Storage &storage, const Directory &directory, ...@@ -55,7 +55,7 @@ directory_child_is_regular(Storage &storage, const Directory &directory,
*/ */
[[gnu::pure]] [[gnu::pure]]
bool bool
directory_child_access(Storage &storage, const Directory &directory, directory_child_access(const Storage &storage, const Directory &directory,
std::string_view name, int mode) noexcept; std::string_view name, int mode) noexcept;
#endif #endif
...@@ -24,7 +24,7 @@ CacheInputStream::CacheInputStream(InputCacheLease _lease, ...@@ -24,7 +24,7 @@ CacheInputStream::CacheInputStream(InputCacheLease _lease,
:InputStream(_lease->GetUri(), _mutex), :InputStream(_lease->GetUri(), _mutex),
InputCacheLease(std::move(_lease)) InputCacheLease(std::move(_lease))
{ {
auto &i = GetCacheItem(); const auto &i = GetCacheItem();
size = i.size(); size = i.size();
seekable = true; seekable = true;
SetReady(); SetReady();
......
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