diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/General/listenbrainz/settingsdialog.cpp | 20 | ||||
| -rw-r--r-- | src/plugins/General/listenbrainz/settingsdialog.h | 22 | ||||
| -rw-r--r-- | src/plugins/General/lyrics/settingsdialog.h | 2 | ||||
| -rw-r--r-- | src/plugins/Input/flac/decoder_flac.h | 2 | ||||
| -rw-r--r-- | src/qmmp/cueparser.cpp | 2 |
5 files changed, 44 insertions, 4 deletions
diff --git a/src/plugins/General/listenbrainz/settingsdialog.cpp b/src/plugins/General/listenbrainz/settingsdialog.cpp index fe6bbf964..2d8453cf9 100644 --- a/src/plugins/General/listenbrainz/settingsdialog.cpp +++ b/src/plugins/General/listenbrainz/settingsdialog.cpp @@ -1,3 +1,23 @@ +/*************************************************************************** + * Copyright (C) 2019-2020 by Ilya Kotov * + * forkotov02@ya.ru * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + #include <QSettings> #include <qmmp/qmmp.h> #include "settingsdialog.h" diff --git a/src/plugins/General/listenbrainz/settingsdialog.h b/src/plugins/General/listenbrainz/settingsdialog.h index 3ee8b0ac0..d10f2f87e 100644 --- a/src/plugins/General/listenbrainz/settingsdialog.h +++ b/src/plugins/General/listenbrainz/settingsdialog.h @@ -1,3 +1,23 @@ +/*************************************************************************** + * Copyright (C) 2019-2020 by Ilya Kotov * + * forkotov02@ya.ru * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + #ifndef SETTINGSDIALOG_H #define SETTINGSDIALOG_H @@ -11,7 +31,7 @@ class SettingsDialog : public QDialog { Q_OBJECT public: - explicit SettingsDialog(QWidget *parent = 0); + explicit SettingsDialog(QWidget *parent = nullptr); ~SettingsDialog(); public slots: diff --git a/src/plugins/General/lyrics/settingsdialog.h b/src/plugins/General/lyrics/settingsdialog.h index 6c4a84859..7e42a2598 100644 --- a/src/plugins/General/lyrics/settingsdialog.h +++ b/src/plugins/General/lyrics/settingsdialog.h @@ -32,7 +32,7 @@ class SettingsDialog : public QDialog Q_OBJECT public: - explicit SettingsDialog(QWidget *parent = 0); + explicit SettingsDialog(QWidget *parent = nullptr); ~SettingsDialog(); public slots: diff --git a/src/plugins/Input/flac/decoder_flac.h b/src/plugins/Input/flac/decoder_flac.h index 232384b69..73ad194e3 100644 --- a/src/plugins/Input/flac/decoder_flac.h +++ b/src/plugins/Input/flac/decoder_flac.h @@ -85,7 +85,7 @@ private: qint64 m_totalBytes = 0; qint64 m_offset = 0; qint64 m_length = 0; - QString m_path = 0; + QString m_path; CueParser *m_parser = nullptr; int m_track = 0; char *m_buf = nullptr; //buffer for remainig data diff --git a/src/qmmp/cueparser.cpp b/src/qmmp/cueparser.cpp index ce90ccd3c..5cf26bd2a 100644 --- a/src/qmmp/cueparser.cpp +++ b/src/qmmp/cueparser.cpp @@ -173,7 +173,7 @@ QString CueParser::file(int track) const if(track < 1 || track > m_tracks.count()) { qWarning("CueParser: invalid track number: %d", track); - return 0; + return nullptr; } return m_tracks.at(track - 1)->file; } |
