the consequences of emo's member variable renaming request

This commit is contained in:
jadebenn
2024-02-03 22:20:37 -06:00
parent 27f69d6152
commit bf318caeda
17 changed files with 30 additions and 25 deletions

View File

@@ -213,10 +213,15 @@ namespace GeneralUtils {
template <typename T>
[[nodiscard]] std::optional<NiPoint3> TryParse(const std::string& strX, const std::string& strY, const std::string& strZ) {
const auto x = TryParse<float>(strX);
const auto y = TryParse<float>(strY);
const auto z = TryParse<float>(strZ);
if (!x) return std::nullopt;
return x && y && z ? std::make_optional<NiPoint3>(x.value(), y.value(), z.value()) : std::nullopt;
const auto y = TryParse<float>(strY);
if (!y) return std::nullopt;
const auto z = TryParse<float>(strZ);
if (!z) return std::nullopt;
return std::make_optional<NiPoint3>(x.value(), y.value(), z.value());
}
/**