diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-12-15 01:05:33 +0100 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-12-15 01:57:06 +0100 |
commit | 0471998e13aada9a76e92b13ab3885c2d1c2fb84 (patch) | |
tree | 776d15ab92ef044956940bc2228b61256ca4feb9 /src/library/rhythmbox | |
parent | 63b858b5d827797eec959d009ad0b970de167dc5 (diff) |
Add missing braces around single-line statements
Diffstat (limited to 'src/library/rhythmbox')
-rw-r--r-- | src/library/rhythmbox/rhythmboxfeature.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/library/rhythmbox/rhythmboxfeature.cpp b/src/library/rhythmbox/rhythmboxfeature.cpp index 7c907aa85b..a167a185c9 100644 --- a/src/library/rhythmbox/rhythmboxfeature.cpp +++ b/src/library/rhythmbox/rhythmboxfeature.cpp @@ -150,8 +150,9 @@ TreeItem* RhythmboxFeature::importMusicCollection() { } } - if (!db.open(QIODevice::ReadOnly | QIODevice::Text)) + if (!db.open(QIODevice::ReadOnly | QIODevice::Text)) { return NULL; + } //Delete all table entries of Traktor feature ScopedTransaction transaction(m_database); @@ -205,8 +206,9 @@ TreeItem* RhythmboxFeature::importPlaylists() { } } //Open file - if (!db.open(QIODevice::ReadOnly | QIODevice::Text)) + if (!db.open(QIODevice::ReadOnly | QIODevice::Text)) { return NULL; + } QSqlQuery query_insert_to_playlists(m_database); query_insert_to_playlists.prepare("INSERT INTO rhythmbox_playlists (id, name) " |