fix warning

This commit is contained in:
arm64v8a
2023-04-02 14:52:52 +09:00
parent 8f1ebf9843
commit 5572a3042f
2 changed files with 8 additions and 5 deletions

View File

@@ -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;
}
}