X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Ffilestorage.cpp;h=1ddb878b259c777ccd0887a0bf6a3dc021a3bc95;hb=8ae9fb971616f51ee64aa623cbc93de50162a067;hp=dea1e68174fb2601cb94b5444bf12bfbe3a2dc56;hpb=684f9a2e23a11cbe3c5284c55fd45eb5d51a31fc;p=someplayer diff --git a/src/filestorage.cpp b/src/filestorage.cpp index dea1e68..1ddb878 100644 --- a/src/filestorage.cpp +++ b/src/filestorage.cpp @@ -48,7 +48,7 @@ QList FileStorage::getPlaylists() { Playlist FileStorage::getPlaylist(QString name) { if (name == _CURRENT_PLAYLIST_SUBST_) name = _CURRENT_PLAYLIST_NAME_; - QFile playlistFile (_path_prefix+"/"+name+"."+_PLAYLIST_FILE_EXTENSION_OLD_); // remove OLD_ in next version + QFile playlistFile (_path_prefix + "/" + name + "." + _PLAYLIST_FILE_EXTENSION_OLD_); // remove OLD_ in next version Playlist playlist; playlist.setName(PLAYLIST_BAD_NAME); // legacy _start_ @@ -85,7 +85,7 @@ Playlist FileStorage::getPlaylist(QString name) { playlistFile.close(); playlistFile.remove(); } else { - playlistFile.setFileName(_path_prefix+"/"+name+"."+_PLAYLIST_FILE_EXTENSION_); + playlistFile.setFileName(_path_prefix + "/" + name + "." + _PLAYLIST_FILE_EXTENSION_); // legacy _end_ if (playlistFile.exists()) { playlist.setName(name); @@ -160,7 +160,7 @@ void FileStorage::savePlaylist(Playlist playlist) { QString name = playlist.name(); if (playlist.name() == _CURRENT_PLAYLIST_SUBST_) name = _CURRENT_PLAYLIST_NAME_; - QString filename = _path_prefix + "/" +name+"."_PLAYLIST_FILE_EXTENSION_; + QString filename = _path_prefix + "/" + name + "."_PLAYLIST_FILE_EXTENSION_; QFile playlistFile(filename); if (playlistFile.exists()) { playlistFile.remove();