diff options
author | Chris Robinson <[email protected]> | 2023-12-13 22:18:09 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-13 22:18:09 -0800 |
commit | 760ada93e88d3c78f6613b52eb5ef15c1564ad80 (patch) | |
tree | e3aebec8d8a4c509163d4a155c525c8c0248ef01 /utils/alsoft-config/mainwindow.h | |
parent | 70b3776032adf05a92fda89ac5f56eb705d06748 (diff) |
Fix clang-tidy warnings from the examples and utilities
Diffstat (limited to 'utils/alsoft-config/mainwindow.h')
-rw-r--r-- | utils/alsoft-config/mainwindow.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/utils/alsoft-config/mainwindow.h b/utils/alsoft-config/mainwindow.h index e2d30b86..96151ca2 100644 --- a/utils/alsoft-config/mainwindow.h +++ b/utils/alsoft-config/mainwindow.h @@ -1,6 +1,8 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H +#include <memory> + #include <QMainWindow> #include <QListWidget> @@ -60,15 +62,15 @@ private slots: void selectWaveOutput(); private: - Ui::MainWindow *ui; - - QValidator *mPeriodSizeValidator{}; - QValidator *mPeriodCountValidator{}; - QValidator *mSourceCountValidator{}; - QValidator *mEffectSlotValidator{}; - QValidator *mSourceSendValidator{}; - QValidator *mSampleRateValidator{}; - QValidator *mJackBufferValidator{}; + std::unique_ptr<QValidator> mPeriodSizeValidator; + std::unique_ptr<QValidator> mPeriodCountValidator; + std::unique_ptr<QValidator> mSourceCountValidator; + std::unique_ptr<QValidator> mEffectSlotValidator; + std::unique_ptr<QValidator> mSourceSendValidator; + std::unique_ptr<QValidator> mSampleRateValidator; + std::unique_ptr<QValidator> mJackBufferValidator; + + std::unique_ptr<Ui::MainWindow> ui; bool mNeedsSave{}; |