Mass: add a few missing string views.

This commit is contained in:
Guillaume Jacquemin 2022-03-11 10:57:16 +01:00
parent e997312286
commit 76613c2ec5
1 changed files with 3 additions and 3 deletions

View File

@ -98,13 +98,13 @@ void Mass::refreshValues() {
}
}
auto unit_data = _mass->at<GenericStructProperty>("UnitData");
auto unit_data = _mass->at<GenericStructProperty>("UnitData"_s);
if(!unit_data) {
_state = State::Invalid;
return;
}
auto name_prop = unit_data->at<StringProperty>("Name_45_A037C5D54E53456407BDF091344529BB");
auto name_prop = unit_data->at<StringProperty>("Name_45_A037C5D54E53456407BDF091344529BB"_s);
if(!name_prop) {
_name = Containers::NullOpt;
@ -184,7 +184,7 @@ void Mass::refreshValues() {
return;
}
auto account_prop = _mass->at<StringProperty>("Account");
auto account_prop = _mass->at<StringProperty>("Account"_s);
if(!account_prop) {
_state = State::Invalid;
return;