From 0e030b54619f4f4ab08eff644d2d51550da20c14 Mon Sep 17 00:00:00 2001 From: Gavin Howard Date: Tue, 26 Aug 2014 10:54:05 -0600 Subject: [PATCH] Ran make format. --- src/library/librarymodel.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/library/librarymodel.cpp b/src/library/librarymodel.cpp index 829126203..573e38c9e 100644 --- a/src/library/librarymodel.cpp +++ b/src/library/librarymodel.cpp @@ -464,7 +464,7 @@ QVariant LibraryModel::AlbumIcon(const QModelIndex& index) { } // Try to load it from the disk cache - std::unique_ptr cache (icon_cache_->data(QUrl(cache_key))); + std::unique_ptr cache(icon_cache_->data(QUrl(cache_key))); if (cache) { QImage cached_pixmap; if (cached_pixmap.load(cache.get(), "XPM")) { @@ -508,7 +508,7 @@ void LibraryModel::AlbumArtLoaded(quint64 id, const QImage& image) { } // if not already in the disk cache - std::unique_ptr cached_img (icon_cache_->data(QUrl(cache_key))); + std::unique_ptr cached_img(icon_cache_->data(QUrl(cache_key))); if (!cached_img) { QNetworkCacheMetaData item_metadata; item_metadata.setSaveToDisk(true); @@ -1073,11 +1073,9 @@ QString LibraryModel::SortTextForArtist(QString artist) { if (artist.startsWith("the ")) { artist = artist.right(artist.length() - 4) + ", the"; - } - else if (artist.startsWith("a ")) { + } else if (artist.startsWith("a ")) { artist = artist.right(artist.length() - 2) + ", a"; - } - else if (artist.startsWith("an ")) { + } else if (artist.startsWith("an ")) { artist = artist.right(artist.length() - 3) + ", an"; }