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:
Stein Dale 2015-05-08 13:34:18 +02:00
parent 23f4f05b99
commit 54dac07c36

View File

@ -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)));