Make static

This commit is contained in:
Jonas Kvinge
2024-06-12 18:07:58 +02:00
parent cb8022c55d
commit f5002cae36
9 changed files with 10 additions and 10 deletions

View File

@@ -848,7 +848,7 @@ QString CollectionModel::AlbumIconPixmapCacheKey(const QModelIndex &idx) const {
} }
QUrl CollectionModel::AlbumIconPixmapDiskCacheKey(const QString &cache_key) const { QUrl CollectionModel::AlbumIconPixmapDiskCacheKey(const QString &cache_key) {
return QUrl(QString::fromLatin1(QUrl::toPercentEncoding(cache_key))); return QUrl(QString::fromLatin1(QUrl::toPercentEncoding(cache_key)));

View File

@@ -247,7 +247,7 @@ class CollectionModel : public SimpleTreeModel<CollectionItem> {
// Helpers // Helpers
static bool IsCompilationArtistNode(const CollectionItem *node) { return node == node->parent->compilation_artist_node_; } static bool IsCompilationArtistNode(const CollectionItem *node) { return node == node->parent->compilation_artist_node_; }
QString AlbumIconPixmapCacheKey(const QModelIndex &idx) const; QString AlbumIconPixmapCacheKey(const QModelIndex &idx) const;
QUrl AlbumIconPixmapDiskCacheKey(const QString &cache_key) const; static QUrl AlbumIconPixmapDiskCacheKey(const QString &cache_key);
QVariant AlbumIcon(const QModelIndex &idx); QVariant AlbumIcon(const QModelIndex &idx);
void ClearItemPixmapCache(CollectionItem *item); void ClearItemPixmapCache(CollectionItem *item);
bool CompareItems(const CollectionItem *a, const CollectionItem *b) const; bool CompareItems(const CollectionItem *a, const CollectionItem *b) const;

View File

@@ -222,7 +222,7 @@ QUrl DeviceLister::MakeUrlFromLocalPath(const QString &path) const {
} }
bool DeviceLister::IsIpod(const QString &path) const { bool DeviceLister::IsIpod(const QString &path) {
return QFile::exists(path + QStringLiteral("/iTunes_Control")) || return QFile::exists(path + QStringLiteral("/iTunes_Control")) ||
QFile::exists(path + QStringLiteral("/iPod_Control")) || QFile::exists(path + QStringLiteral("/iPod_Control")) ||
QFile::exists(path + QStringLiteral("/iTunes/iTunes_Control")); QFile::exists(path + QStringLiteral("/iTunes/iTunes_Control"));

View File

@@ -91,10 +91,10 @@ class DeviceLister : public QObject {
protected: protected:
virtual bool Init() = 0; virtual bool Init() = 0;
QUrl MakeUrlFromLocalPath(const QString &path) const; QUrl MakeUrlFromLocalPath(const QString &path) const;
bool IsIpod(const QString &path) const; static bool IsIpod(const QString &path);
QVariantList GuessIconForPath(const QString &path); QVariantList GuessIconForPath(const QString &path);
QVariantList GuessIconForModel(const QString &vendor, const QString &model); static QVariantList GuessIconForModel(const QString &vendor, const QString &model);
protected: protected:
QThread *thread_; QThread *thread_;

View File

@@ -40,7 +40,7 @@ class AzLyricsComLyricsProvider : public HtmlLyricsProvider {
QUrl Url(const LyricsSearchRequest &request) override; QUrl Url(const LyricsSearchRequest &request) override;
private: private:
QString StringFixup(const QString &text); static QString StringFixup(const QString &text);
}; };
#endif // AZLYRICSCOMLYRICSPROVIDER_H #endif // AZLYRICSCOMLYRICSPROVIDER_H

View File

@@ -40,7 +40,7 @@ class ElyricsNetLyricsProvider : public HtmlLyricsProvider {
QUrl Url(const LyricsSearchRequest &request) override; QUrl Url(const LyricsSearchRequest &request) override;
private: private:
QString StringFixup(const QString &text); static QString StringFixup(const QString &text);
}; };
#endif // ELYRICSNETLYRICSPROVIDER_H #endif // ELYRICSNETLYRICSPROVIDER_H

View File

@@ -40,7 +40,7 @@ class LetrasLyricsProvider : public HtmlLyricsProvider {
QUrl Url(const LyricsSearchRequest &request) override; QUrl Url(const LyricsSearchRequest &request) override;
private: private:
QString StringFixup(const QString &text); static QString StringFixup(const QString &text);
}; };
#endif // LETRASLYRICSPROVIDER_H #endif // LETRASLYRICSPROVIDER_H

View File

@@ -40,7 +40,7 @@ class SongLyricsComLyricsProvider : public HtmlLyricsProvider {
QUrl Url(const LyricsSearchRequest &request) override; QUrl Url(const LyricsSearchRequest &request) override;
private: private:
QString StringFixup(QString text); static QString StringFixup(QString text);
}; };
#endif // SONGLYRICSCOMLYRICSPROVIDER_H #endif // SONGLYRICSCOMLYRICSPROVIDER_H

View File

@@ -25,7 +25,7 @@
class MusixmatchProvider { class MusixmatchProvider {
protected: protected:
QString StringFixup(QString text); static QString StringFixup(QString text);
protected: protected:
static const char *kApiUrl; static const char *kApiUrl;