What steps will reproduce the problem?
1. Compile the lastest stable version (1.2.2) on Linux using lastest gcc (4.7)
and lastest Qt (4.8.2)
What is the expected output? What do you see instead?
The compiler show the following error:
src/gui/environmentvariablemanager/pEnvironmentVariablesModel.cpp:228:40:
error: redeclaration of ‘pEnvironmentVariablesModel::Variable variable’
src/gui/environmentvariablemanager/pEnvironmentVariablesModel.cpp:224:2: error:
‘const QString& variable’ previously declared here
Please provide any additional information below.
I fixed the issue editting the source file. The code:
pEnvironmentVariablesModel::Variables
pEnvironmentVariablesModel::stringListToVariables( const QStringList& variables
)
{
pEnvironmentVariablesModel::Variables items;
foreach ( const QString& v, variables ) {
const QString name = v.section( '=', 0, 0 );
const QString value = v.section( '=', 1 );
pEnvironmentVariablesModel::Variable variable;
variable.name = name;
variable.value = value;
variable.enabled = true;
items[ name ] = variable;
}
return items;
}
Original issue reported on code.google.com by vini.ips...@gmail.com on 11 Jun 2012 at 12:56
Original issue reported on code.google.com by
vini.ips...@gmail.com
on 11 Jun 2012 at 12:56