berclau / qwbfs

Automatically exported from code.google.com/p/qwbfs
0 stars 0 forks source link

Compile issue in bundled libfresh on lastest stable version (1.2.2) #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Sources fixed in release 1.2.3.

Thanks for the feedback!

Regards,

Original comment by pasnox on 30 Jun 2012 at 3:29