summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-05-07 17:15:20 +0200
committerCarl Hetherington <cth@carlh.net>2021-05-07 17:15:20 +0200
commitea0783bcfe32b5aec349aa03c46daea76abd42f1 (patch)
tree073ebc251df136f413b049a13bfa71e14bd9d4cc /src
parent67901f7d46fdaf60d1781556a3a6a781ec5acd51 (diff)
Fix build with some older compilers.
Diffstat (limited to 'src')
-rw-r--r--src/wx/audio_plot.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc
index 4e4b6d6a0..90a4aa91d 100644
--- a/src/wx/audio_plot.cc
+++ b/src/wx/audio_plot.cc
@@ -477,7 +477,7 @@ AudioPlot::mouse_moved (wxMouseEvent& ev)
search (_peak, ev, min_dist, min_point);
}
- _cursor = {};
+ _cursor = boost::none;
if (min_dist < DBL_MAX) {
wxRect before (min_point.draw.x - _cursor_size / 2, min_point.draw.y - _cursor_size / 2, _cursor_size, _cursor_size);
@@ -493,7 +493,7 @@ AudioPlot::mouse_moved (wxMouseEvent& ev)
void
AudioPlot::mouse_leave (wxMouseEvent &)
{
- _cursor = {};
+ _cursor = boost::none;
Refresh ();
Cursor (optional<DCPTime>(), optional<float>());
}