From 619dfb1195735dd7dca2886bec563fefc2ba5efb Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sat, 10 Jan 2015 14:57:03 +0000 Subject: [PATCH] MainWindow: Moved static constants to top of class definitions --- pv/mainwindow.hpp | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index 42462d22..bf491156 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -57,6 +57,19 @@ class MainWindow : public QMainWindow { Q_OBJECT +private: + /** + * Name of the setting used to remember the directory + * containing the last file that was opened. + */ + static const char *SettingOpenDirectory; + + /** + * Name of the setting used to remember the directory + * containing the last file that was saved. + */ + static const char *SettingSaveDirectory; + public: explicit MainWindow(DeviceManager &device_manager, const char *open_file_name = NULL, @@ -112,18 +125,6 @@ private Q_SLOTS: void device_selected(); private: - /** - * Name of the setting used to remember the directory - * containing the last file that was opened. - */ - static const char *SettingOpenDirectory; - - /** - * Name of the setting used to remember the directory - * containing the last file that was saved. - */ - static const char *SettingSaveDirectory; - DeviceManager &device_manager_; Session session_; -- 2.30.2