Fixed clang warning

This commit is contained in:
emeric
2021-09-26 15:53:53 +02:00
parent ada50d80c8
commit 496e9161e9
2 changed files with 2 additions and 4 deletions
@@ -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)
+1 -3
View File
@@ -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());