18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-29 11:36:41 +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

@@ -404,7 +404,7 @@ bool sweep_node::state::operator==(state const &Other) const
sweep_node::sweep_node(scene::node_data const &Nodedata) : basic_node(Nodedata) {}
void sweep_node::import(cParser &Input, glm::dvec3 const &Offset)
void sweep_node::import_from(cParser &Input, glm::dvec3 const &Offset)
{
m_state = state{};
m_state.model = Input.getToken<std::string>();