mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
RedHat compilation fixes
Removed a couple of auto types and started writing the types explicitly, to be able to compile on RedHat.
This commit is contained in:
parent
23f4f05b99
commit
54dac07c36
@ -202,12 +202,14 @@ void RimGeoMechResultSlot::getUiAndResultVariableStringList(QStringList* uiNames
|
||||
{
|
||||
CVF_ASSERT(uiNames && variableNames);
|
||||
|
||||
for (auto fieldIt = fieldCompNames.begin(); fieldIt != fieldCompNames.end(); ++fieldIt)
|
||||
std::map<std::string, std::vector<std::string> >::const_iterator fieldIt;
|
||||
for (fieldIt = fieldCompNames.begin(); fieldIt != fieldCompNames.end(); ++fieldIt)
|
||||
{
|
||||
uiNames->push_back(QString::fromStdString(fieldIt->first));
|
||||
variableNames->push_back(QString::fromStdString(fieldIt->first));
|
||||
|
||||
for (auto compIt = fieldIt->second.begin(); compIt != fieldIt->second.end(); ++compIt)
|
||||
std::vector<std::string>::const_iterator compIt;
|
||||
for (compIt = fieldIt->second.begin(); compIt != fieldIt->second.end(); ++compIt)
|
||||
{
|
||||
uiNames->push_back(QString::fromStdString(" " + *compIt));
|
||||
variableNames->push_back(composeUiVarString(QString::fromStdString(fieldIt->first), QString::fromStdString(*compIt)));
|
||||
|
Loading…
Reference in New Issue
Block a user