CodeFactor review
This commit is contained in:
@@ -67,7 +67,6 @@ namespace Scrobbling::ListenBrainz
|
|||||||
std::size_t fetchedListenCount{};
|
std::size_t fetchedListenCount{};
|
||||||
std::size_t matchedListenCount{};
|
std::size_t matchedListenCount{};
|
||||||
std::size_t importedListenCount{};
|
std::size_t importedListenCount{};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
UserContext& getUserContext(Database::IdType userId);
|
UserContext& getUserContext(Database::IdType userId);
|
||||||
|
|||||||
@@ -40,10 +40,8 @@ IOContextRunner::stop()
|
|||||||
|
|
||||||
IOContextRunner::~IOContextRunner()
|
IOContextRunner::~IOContextRunner()
|
||||||
{
|
{
|
||||||
|
|
||||||
stop();
|
stop();
|
||||||
|
|
||||||
for (std::thread& t : _threads)
|
for (std::thread& t : _threads)
|
||||||
t.join();
|
t.join();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ namespace UserInterface
|
|||||||
void refreshView(const Wt::WString& searchText);
|
void refreshView(const Wt::WString& searchText);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
// same order as in the menu
|
// same order as in the menu
|
||||||
enum class Mode
|
enum class Mode
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -124,7 +124,6 @@ class TmpDatabase final
|
|||||||
const std::filesystem::path _tmpFile {std::tmpnam(nullptr)};
|
const std::filesystem::path _tmpFile {std::tmpnam(nullptr)};
|
||||||
ScopedFileDeleter fileDeleter {_tmpFile};
|
ScopedFileDeleter fileDeleter {_tmpFile};
|
||||||
Database::Db _db {_tmpFile};
|
Database::Db _db {_tmpFile};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class DatabaseFixture : public ::testing::Test
|
class DatabaseFixture : public ::testing::Test
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ TEST_F(DatabaseFixture, SingleTrack)
|
|||||||
|
|
||||||
TEST_F(DatabaseFixture, MultipleTracksSearchByFilter)
|
TEST_F(DatabaseFixture, MultipleTracksSearchByFilter)
|
||||||
{
|
{
|
||||||
|
|
||||||
ScopedTrack track1 {session, ""};
|
ScopedTrack track1 {session, ""};
|
||||||
ScopedTrack track2 {session, ""};
|
ScopedTrack track2 {session, ""};
|
||||||
ScopedTrack track3 {session, ""};
|
ScopedTrack track3 {session, ""};
|
||||||
|
|||||||
Reference in New Issue
Block a user