mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
fix warning
This commit is contained in:
@@ -170,6 +170,7 @@ namespace NekoRay::sub {
|
||||
try {
|
||||
return n.as<std::string>().c_str();
|
||||
} catch (const YAML::Exception &ex) {
|
||||
qDebug() << ex.what();
|
||||
return def;
|
||||
}
|
||||
}
|
||||
@@ -178,6 +179,7 @@ namespace NekoRay::sub {
|
||||
try {
|
||||
return n.as<int>();
|
||||
} catch (const YAML::Exception &ex) {
|
||||
qDebug() << ex.what();
|
||||
return def;
|
||||
}
|
||||
}
|
||||
@@ -186,6 +188,7 @@ namespace NekoRay::sub {
|
||||
try {
|
||||
return n.as<bool>();
|
||||
} catch (const YAML::Exception &ex) {
|
||||
qDebug() << ex.what();
|
||||
return def;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user