X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fucioption.cpp;h=1f120e11120b1034b3175d84a686b4512ea33668;hb=4bd24da161fa7fdac4283438e86e9fd923c3493a;hp=5c891421ec9447ae99d726a1bf9c7bb0dd5cecd0;hpb=86e467520f780c8b2cfbfe2b4451987de66882c7;p=stockfish diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 5c891421..1f120e11 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -134,7 +134,7 @@ Option::operator std::string() const { return currentValue; } -bool Option::operator==(const char* s) { +bool Option::operator==(const char* s) const { assert(type == "combo"); return !CaseInsensitiveLess()(currentValue, s) && !CaseInsensitiveLess()(s, currentValue);