* ./vlsisapd/configuration:

- Shoot some g++ warnings...
This commit is contained in:
Jean-Paul Chaput 2010-06-25 08:49:05 +00:00
parent 5d8fd732c9
commit 132ec33599
2 changed files with 4 additions and 1 deletions

View File

@ -403,6 +403,7 @@ namespace Cfg {
out << " asType:";
switch ( p->getType() ) {
case Parameter::Unknown: out << "<unknown>"; break;
case Parameter::String: out << "<string>"; break;
case Parameter::Bool: out << boolalpha << p->asBool(); break;
case Parameter::Int: out << p->asInt(); break;

View File

@ -58,6 +58,8 @@ namespace Cfg {
_labelWidget->setText ( label.c_str() );
switch ( _parameter->getType() ) {
case Parameter::Unknown:
break;
case Parameter::String:
{
QLineEdit* lineEdit = new QLineEdit();
@ -301,7 +303,7 @@ namespace Cfg {
bool enabled = ( state != Qt::Unchecked );
const vector<string>& slaveIds = _parameter->getSlaves();
for ( int islave=0 ; islave<slaveIds.size() ; ++islave ) {
for ( size_t islave=0 ; islave<slaveIds.size() ; ++islave ) {
ParameterWidget* slave = cw->find(slaveIds[islave]);
if ( slave == NULL ) continue;