Fixed clang warning
This commit is contained in:
@@ -233,7 +233,7 @@ namespace
|
||||
result.oldestEntry = listenedAt;
|
||||
|
||||
if (const Database::Track::pointer track {tryMatchListen(session, metadata)})
|
||||
result.matchedListens.emplace_back(Scrobbling::TimedListen {userId, track->getId(), listenedAt});
|
||||
result.matchedListens.emplace_back(Scrobbling::TimedListen {{userId, track->getId()}, listenedAt});
|
||||
}
|
||||
}
|
||||
catch (const Wt::WException& error)
|
||||
|
||||
@@ -38,8 +38,6 @@
|
||||
#include "ReleaseListHelpers.hpp"
|
||||
#include "TrackListHelpers.hpp"
|
||||
|
||||
static constexpr std::size_t maxEntries {6};
|
||||
|
||||
namespace UserInterface
|
||||
{
|
||||
|
||||
@@ -56,7 +54,7 @@ namespace UserInterface
|
||||
stack->setAttributeValue("style", "overflow-x:visible;overflow-y:visible;");
|
||||
_menu = bindNew<Wt::WMenu>("mode", stack);
|
||||
|
||||
auto addItem = [=](const Wt::WString& str, Mode mode, const Wt::WString& templateStr, std::function<void()> onRequestElementsFunc)
|
||||
auto addItem = [=](const Wt::WString& str, [[maybe_unused]] Mode mode, const Wt::WString& templateStr, std::function<void()> onRequestElementsFunc)
|
||||
{
|
||||
assert(modeToIndex(mode) == _results.size());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user