pasnox / qwbfsmanager

QWBFS Manager is a Wii games manager
62 stars 7 forks source link

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

Closed pasnox closed 10 years ago

pasnox commented 10 years ago

From vini.ips...@gmail.com on June 11, 2012 02:56:35

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: http://code.google.com/p/qwbfs/issues/detail?id=22

pasnox commented 10 years ago

From pasnox on June 30, 2012 08:29:42

Sources fixed in release 1.2.3.

Thanks for the feedback!

Regards,

Status: Fixed
Owner: pasnox