message: Replace while loop with call to std::find_if
diff: #include <NAS2D/Renderer/Renderer.h>
  #include <NAS2D/MathUtils.h>
  +#include <algorithm>
  +
  +
  using namespace NAS2D;
  static Font* FONT = nullptr;
  @@ -249,17 +252,17 @@ void IconGrid::removeItem(const std::string& item)
  {
  const auto lowerCaseTarget = toLowercase(item);
  - auto it = mIconItemList.begin();
  - while (it != mIconItemList.end())
  - {
  - if (toLowercase((*it).name) == lowerCaseTarget)
  + const auto iter = std::find_if(
  + mIconItemList.begin(),
  + mIconItemList.end(),
  + [&lowerCaseTarget](const auto& iconItem) {
  + return toLowercase(iconItem.name) == lowerCaseTarget;
  + }
  + );
  + if (iter != mIconItemList.end())
  {
  - mIconItemList.erase(it);
  + mIconItemList.erase(iter);
  clearSelection();
  - return;
  - }
  -
  - ++it;
  }
  }
  