Fixed clang warning
This commit is contained in:
@@ -233,7 +233,7 @@ namespace
|
|||||||
result.oldestEntry = listenedAt;
|
result.oldestEntry = listenedAt;
|
||||||
|
|
||||||
if (const Database::Track::pointer track {tryMatchListen(session, metadata)})
|
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)
|
catch (const Wt::WException& error)
|
||||||
|
|||||||
@@ -38,8 +38,6 @@
|
|||||||
#include "ReleaseListHelpers.hpp"
|
#include "ReleaseListHelpers.hpp"
|
||||||
#include "TrackListHelpers.hpp"
|
#include "TrackListHelpers.hpp"
|
||||||
|
|
||||||
static constexpr std::size_t maxEntries {6};
|
|
||||||
|
|
||||||
namespace UserInterface
|
namespace UserInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -56,7 +54,7 @@ namespace UserInterface
|
|||||||
stack->setAttributeValue("style", "overflow-x:visible;overflow-y:visible;");
|
stack->setAttributeValue("style", "overflow-x:visible;overflow-y:visible;");
|
||||||
_menu = bindNew<Wt::WMenu>("mode", stack);
|
_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());
|
assert(modeToIndex(mode) == _results.size());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user