Cleanup: const
authorCarl Hetherington <cth@carlh.net>
Sat, 12 Nov 2022 19:49:54 +0000 (20:49 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 12 Nov 2022 23:12:26 +0000 (00:12 +0100)
src/wx/config_dialog.cc
src/wx/config_dialog.h

index c3d17748c3308e926e5d7ddaa1bc2711d5c0a074..af3f84b9e1e180e5fc9f117d0a5b1ef235f64f97 100644 (file)
@@ -1027,7 +1027,7 @@ SoundPage::setup_sensitivity ()
 
 /** @return Currently-selected preview sound output in the dialogue */
 optional<string>
-SoundPage::get_sound_output ()
+SoundPage::get_sound_output() const
 {
        int const sel = _sound_output->GetSelection ();
        if (sel == wxNOT_FOUND) {
index 5f2e02c23eb469071b5171c6194401be7bbddf87..a98bba1afa27da98958300aab07beb28705897ad 100644 (file)
@@ -208,7 +208,7 @@ private:
 
        void setup () override;
        void config_changed () override;
-        boost::optional<std::string> get_sound_output ();
+        boost::optional<std::string> get_sound_output() const;
        void sound_changed ();
        void sound_output_changed ();
        void setup_sensitivity ();