18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-28 20:53:22 +01:00

refactor: rename the import methods and the module variables (Sonar S1669) (#363)

import and module are contextual keywords of C++20 modules. The text
loaders of the scene nodes (shape_node, lines_node, road_node,
junction_node, roadpoint_node, sweep_node) become import_from(), the
WASM module of the screen host's cache entry and of load() becomes
wasm_module, and the path of the written test module becomes
module_path. Renames only.
This commit is contained in:
jerrrrycho
2026-11-20 03:42:41 +01:00
committed by GitHub
parent 7f2c611772
commit 357ccabd0c
12 changed files with 39 additions and 39 deletions

View File

@@ -326,7 +326,7 @@ std::vector<roadpoint_node::vehicle_data> roadpoint_node::parse_vehicles(std::st
}
// restores content of the node from provided input stream; reads up to and including the closing statement
void roadpoint_node::import(cParser &Input, glm::dvec3 const &Offset)
void roadpoint_node::import_from(cParser &Input, glm::dvec3 const &Offset)
{
auto const type{keyword(m_state.kind)};
auto const label{type + " \"" + m_name + "\""};