mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
Clang: reduce warnings
This commit is contained in:
parent
2148538fac
commit
12a0edfa50
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
||||||
void
|
void
|
||||||
operator>>( const YAML::Node& node, QStringList& v )
|
operator>>( const YAML::Node& node, QStringList& v )
|
||||||
{
|
{
|
||||||
for ( int i = 0; i < node.size(); ++i )
|
for ( size_t i = 0; i < node.size(); ++i )
|
||||||
{
|
{
|
||||||
v.append( QString::fromStdString( node[ i ].as< std::string >() ) );
|
v.append( QString::fromStdString( node[ i ].as< std::string >() ) );
|
||||||
}
|
}
|
||||||
|
@ -51,9 +51,11 @@ yamlToVariant( const YAML::Node& node )
|
||||||
return yamlMapToVariant( node );
|
return yamlMapToVariant( node );
|
||||||
|
|
||||||
case YAML::NodeType::Null:
|
case YAML::NodeType::Null:
|
||||||
|
case YAML::NodeType::Undefined:
|
||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NOTREACHED
|
||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue