mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed Linux comiler warnings
This commit is contained in:
@@ -771,9 +771,9 @@ void RimLegendConfig::setNamedCategories(const std::vector<QString>& categoryNam
|
||||
std::vector<int> nameIndices;
|
||||
std::vector<cvf::String> names;
|
||||
|
||||
for ( int i = 0; i < categoryNames.size(); ++i )
|
||||
for ( size_t i = 0; i < categoryNames.size(); ++i )
|
||||
{
|
||||
nameIndices.push_back(i);
|
||||
nameIndices.push_back(static_cast<int>(i));
|
||||
names.push_back(cvfqt::Utils::toString(categoryNames[i]));
|
||||
}
|
||||
|
||||
|
||||
@@ -265,11 +265,11 @@ std::vector<double>* RigFlowDiagResults::calculateTracerWithMaxFractionResult(co
|
||||
int selTracerIdx = 0;
|
||||
for ( const std::string& tracerName: resVarAddr.selectedTracerNames )
|
||||
{
|
||||
for ( int globIdx = 0; globIdx < allTracerNames.size(); ++globIdx )
|
||||
for ( size_t globIdx = 0; globIdx < allTracerNames.size(); ++globIdx )
|
||||
{
|
||||
if ( allTracerNames[globIdx].toStdString() == tracerName )
|
||||
{
|
||||
selectedTracerIdxToGlobalTracerIdx[selTracerIdx] = globIdx;
|
||||
selectedTracerIdxToGlobalTracerIdx[selTracerIdx] = static_cast<int>(globIdx);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user