@@ -90,7 +90,7 @@ LightUpOptions parse_legacy_light_up(const toml::value& toml_input) {
9090
9191 // Parse sample direction (light_s_dir -> sample_direction)
9292 if (viz_table.contains (" light_s_dir" )) {
93- const auto & dir = toml::find (toml_input, " light_s_dir" );
93+ const auto dir = toml::find (toml_input, " light_s_dir" );
9494 if (dir.at (0 ).is (toml::value_t ::integer)) {
9595 auto dir_vec = toml::get<std::vector<int >>(dir);
9696 if (dir_vec.size () >= 3 ) {
@@ -181,7 +181,7 @@ LightUpOptions LightUpOptions::from_toml(const toml::value& toml_input) {
181181 }
182182
183183 if (toml_input.contains (" light_s_dir" )) {
184- const auto & dir = toml::find (toml_input, " light_s_dir" );
184+ const auto dir = toml::find (toml_input, " light_s_dir" );
185185 if (dir.at (0 ).is (toml::value_t ::integer)) {
186186 auto dir_vec = toml::get<std::vector<int >>(dir);
187187 if (dir_vec.size () >= 3 ) {
@@ -194,7 +194,7 @@ LightUpOptions LightUpOptions::from_toml(const toml::value& toml_input) {
194194 }
195195 }
196196 } else if (toml_input.contains (" sample_direction" )) {
197- const auto & dir = toml::find (toml_input, " sample_direction" );
197+ const auto dir = toml::find (toml_input, " sample_direction" );
198198 if (dir.at (0 ).is (toml::value_t ::integer)) {
199199 auto dir_vec = toml::get<std::vector<int >>(dir);
200200 if (dir_vec.size () >= 3 ) {
0 commit comments