summaryrefslogtreecommitdiff
path: root/src/wx/content_colour_conversion_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-10-01 16:00:30 +0100
committerCarl Hetherington <cth@carlh.net>2015-10-01 21:32:27 +0100
commit85fa5c482d005ea8b53d3dce54a8f15b237deb14 (patch)
tree891cc16831a0b5c84bc574ce253f0ff59a6cc08d /src/wx/content_colour_conversion_dialog.cc
parent765f90586c498860aa687e2b0cd6cedf1e0b1bf0 (diff)
Explicit casts optional to bool.
Diffstat (limited to 'src/wx/content_colour_conversion_dialog.cc')
-rw-r--r--src/wx/content_colour_conversion_dialog.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wx/content_colour_conversion_dialog.cc b/src/wx/content_colour_conversion_dialog.cc
index 9713cde1b..e4e16157d 100644
--- a/src/wx/content_colour_conversion_dialog.cc
+++ b/src/wx/content_colour_conversion_dialog.cc
@@ -93,8 +93,8 @@ ContentColourConversionDialog::check_for_preset ()
optional<size_t> preset = _editor->get().preset ();
- _preset_check->SetValue (preset);
- _preset_choice->Enable (preset);
+ _preset_check->SetValue (static_cast<bool>(preset));
+ _preset_choice->Enable (static_cast<bool>(preset));
if (preset) {
_preset_choice->SetSelection (preset.get ());
} else {
@@ -123,5 +123,3 @@ ContentColourConversionDialog::preset_choice_changed ()
set (presets[s].conversion);
}
}
-
-