Formatting
This commit is contained in:
@@ -118,7 +118,7 @@ using namespace std::chrono_literals;
|
||||
class ApplicationImpl {
|
||||
public:
|
||||
explicit ApplicationImpl(Application *app)
|
||||
: tagreader_client_([app](){
|
||||
: tagreader_client_([app]() {
|
||||
TagReaderClient *client = new TagReaderClient();
|
||||
app->MoveToNewThread(client);
|
||||
return client;
|
||||
|
||||
@@ -204,7 +204,7 @@ bool CommandlineOptions::Parse() {
|
||||
{ "version", no_argument, nullptr, LongOptions::Version },
|
||||
{ nullptr, 0, nullptr, 0 }
|
||||
#endif
|
||||
};
|
||||
};
|
||||
|
||||
// Parse the arguments
|
||||
bool ok = false;
|
||||
|
||||
@@ -503,7 +503,9 @@ bool Database::IntegrityCheck(const QSqlDatabase &db) {
|
||||
break;
|
||||
}
|
||||
else {
|
||||
if (!error_reported) { Q_EMIT Error(tr("Database corruption detected.")); }
|
||||
if (!error_reported) {
|
||||
Q_EMIT Error(tr("Database corruption detected."));
|
||||
}
|
||||
Q_EMIT Error(u"Database: "_s + message);
|
||||
error_reported = true;
|
||||
}
|
||||
|
||||
@@ -128,7 +128,6 @@ class Database : public QObject {
|
||||
int startup_schema_version_;
|
||||
|
||||
QThread *original_thread_;
|
||||
|
||||
};
|
||||
|
||||
#endif // DATABASE_H
|
||||
|
||||
@@ -27,6 +27,7 @@ class IconLoader {
|
||||
public:
|
||||
static void Init();
|
||||
static QIcon Load(const QString &name, const bool system_icon = true, const int fixed_size = 0, const int min_size = 0, const int max_size = 0);
|
||||
|
||||
private:
|
||||
explicit IconLoader() {}
|
||||
static bool system_icons_;
|
||||
|
||||
@@ -220,7 +220,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SPARKLE
|
||||
#include "core/sparkleupdater.h"
|
||||
# include "core/sparkleupdater.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_QTSPARKLE
|
||||
@@ -228,7 +228,7 @@
|
||||
#endif // HAVE_QTSPARKLE
|
||||
|
||||
#ifdef HAVE_DISCORD_RPC
|
||||
#include "discord/richpresence.h"
|
||||
# include "discord/richpresence.h"
|
||||
#endif
|
||||
|
||||
using std::make_unique;
|
||||
@@ -272,8 +272,8 @@ constexpr char QTSPARKLE_URL[] = "https://www.strawberrymusicplayer.org/sparkle-
|
||||
# endif
|
||||
|
||||
# else
|
||||
# error "Unsupported OS for QtSparkle"
|
||||
# endif // OS
|
||||
# error "Unsupported OS for QtSparkle"
|
||||
# endif // OS
|
||||
|
||||
} // namespace
|
||||
#endif // HAVE_QTSPARKLE
|
||||
|
||||
@@ -285,7 +285,6 @@ class MainWindow : public QMainWindow, public PlatformInterface {
|
||||
void Raise();
|
||||
|
||||
private:
|
||||
|
||||
void SaveSettings();
|
||||
|
||||
static void ApplyAddBehaviour(const BehaviourSettings::AddBehaviour b, MimeData *mimedata);
|
||||
@@ -415,7 +414,6 @@ class MainWindow : public QMainWindow, public PlatformInterface {
|
||||
bool playlists_loaded_;
|
||||
bool delete_files_;
|
||||
std::optional<CommandlineOptions> options_;
|
||||
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
||||
@@ -121,8 +121,8 @@ class Player : public PlayerInterface {
|
||||
void PlayPlaylistInternal(const EngineBase::TrackChangeFlags, const Playlist::AutoScroll autoscroll, const QString &playlist_name);
|
||||
|
||||
void FatalError();
|
||||
void ValidSongRequested(const QUrl&);
|
||||
void InvalidSongRequested(const QUrl&);
|
||||
void ValidSongRequested(const QUrl &url);
|
||||
void InvalidSongRequested(const QUrl &url);
|
||||
|
||||
void HandleLoadResult(const UrlHandler::LoadResult &result);
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@ class QtFSListener : public FileSystemWatcherInterface {
|
||||
|
||||
private:
|
||||
QFileSystemWatcher watcher_;
|
||||
|
||||
};
|
||||
|
||||
#endif // QTFSLISTENER_H
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#if defined(__OBJC__)
|
||||
@class NSAutoreleasePool;
|
||||
#else // __OBJC__
|
||||
#else // __OBJC__
|
||||
class NSAutoreleasePool;
|
||||
#endif // __OBJC__
|
||||
|
||||
@@ -28,6 +28,7 @@ class ScopedNSAutoreleasePool {
|
||||
// Only use then when you're certain the items currently in the pool are
|
||||
// no longer needed.
|
||||
void Recycle();
|
||||
|
||||
private:
|
||||
NSAutoreleasePool *autorelease_pool_;
|
||||
|
||||
|
||||
@@ -171,7 +171,6 @@ class SongLoader : public QObject {
|
||||
QStringList errors_;
|
||||
|
||||
bool success_;
|
||||
|
||||
};
|
||||
|
||||
#endif // SONGLOADER_H
|
||||
|
||||
@@ -36,4 +36,4 @@ class TemporaryFile {
|
||||
QString filename_;
|
||||
};
|
||||
|
||||
#endif // TEMPORARYFILE_H
|
||||
#endif // TEMPORARYFILE_H
|
||||
|
||||
@@ -89,7 +89,6 @@ class UrlHandler : public QObject {
|
||||
|
||||
Q_SIGNALS:
|
||||
void AsyncLoadComplete(const UrlHandler::LoadResult &result);
|
||||
|
||||
};
|
||||
|
||||
#endif // URLHANDLER_H
|
||||
|
||||
Reference in New Issue
Block a user