message: Extract common Point subexpression in ListBox
diff: @@ -205,12 +205,14 @@ void ListBox::onMouseDown(EventHandler::MouseButton /*button*/, int x, int y)
  // Ignore if menu is empty or invisible
  if (empty() || !visible()) { return; }
  - if (!rect().contains(Point{x, y}) || mCurrentHighlight == constants::NO_SELECTION)
  + const auto point = NAS2D::Point{x, y};
  +
  + if (!rect().contains(point) || mCurrentHighlight == constants::NO_SELECTION)
  {
  return;
  }
  - if (mSlider.visible() && mSlider.rect().contains(Point{x, y}))
  + if (mSlider.visible() && mSlider.rect().contains(point))
  {
  return; // if the mouse is on the slider then the slider should handle that
  }
  @@ -229,15 +231,17 @@ void ListBox::onMouseMove(int x, int y, int /*relX*/, int /*relY*/)
  // Ignore if menu is empty or invisible
  if (empty() || !visible()) { return; }
  + const auto point = NAS2D::Point{x, y};
  +
  // Ignore mouse motion events if the pointer isn't within the menu rect.
  - if (!rect().contains(Point{x, y}))
  + if (!rect().contains(point))
  {
  mCurrentHighlight = constants::NO_SELECTION;
  return;
  }
  // if the mouse is on the slider then the slider should handle that
  - if (mSlider.visible() && mSlider.rect().contains(Point{x, y}))
  + if (mSlider.visible() && mSlider.rect().contains(point))
  {
  mCurrentHighlight = constants::NO_SELECTION;
  return;
  