1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix GCC / clang

This commit is contained in:
Ted John
2016-09-13 18:58:45 +01:00
parent fdc0010525
commit bf7feefb7d

View File

@@ -18,6 +18,7 @@
#include <initializer_list>
#include "../common.h"
#include "String.hpp"
namespace Collections
{
@@ -63,7 +64,7 @@ namespace Collections
if (ignoreCase)
{
return Contains(collection, item,
[](const auto &a, const auto &b)
[](const char * a, const char * b)
{
return String::Equals(a, b, true);
});
@@ -71,7 +72,7 @@ namespace Collections
else
{
return Contains(collection, item,
[](const auto &a, const auto &b)
[](const char * a, const char * b)
{
return String::Equals(a, b, false);
});
@@ -84,7 +85,7 @@ namespace Collections
if (ignoreCase)
{
return IndexOf(collection, item,
[](const auto &a, const auto &b)
[](const char * a, const char * b)
{
return String::Equals(a, b, true);
});
@@ -92,7 +93,7 @@ namespace Collections
else
{
return IndexOf(collection, item,
[](const auto &a, const auto &b)
[](const char * a, const char * b)
{
return String::Equals(a, b, false);
});