-// Copyright (C) 2014-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2020 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
anAcceptedValues.push_back(Locale::Convert::toString((*aFIt)->name()));
}
- if (aPartsAttr->size() != anAcceptedValues.size())
+ if ((size_t)aPartsAttr->size() != anAcceptedValues.size())
aTargetAttr->setValue(0);
aPartsAttr->setSize((int)anAcceptedValues.size());
bool splitName(std::wstring& theName, int& theIndex)
{
size_t aLastUndercore = theName.find_last_of('_');
- bool isOk = aLastUndercore != std::string::npos;
+ bool isOk = aLastUndercore != std::wstring::npos;
if (isOk) {
size_t isNumber;
std::wstring anIndexStr = theName.substr(aLastUndercore + 1);