Sat, 08 Apr 2023 15:52:25 +0300
Rename forModel -> forEachModel
src/main.cpp | file | annotate | diff | comparison | revisions |
--- a/src/main.cpp Sat Apr 08 15:50:38 2023 +0300 +++ b/src/main.cpp Sat Apr 08 15:52:25 2023 +0300 @@ -226,7 +226,7 @@ } template<typename Fn> -static void forModel(const DocumentManager* documents, Fn&& fn) +static void forEachModel(const DocumentManager* documents, Fn&& fn) { forValueInMap(*documents, [&fn](const DocumentManager::ModelInfo& info) { @@ -242,7 +242,7 @@ const gl::RenderPreferences* renderPreferences, const DocumentManager* documents) { - forModel(documents, [&renderPreferences](const void*, const ModelData* data){ + forEachModel(documents, [&renderPreferences](const void*, const ModelData* data){ if (data->canvas != nullptr) { data->canvas->setRenderPreferences(*renderPreferences); data->canvas->setLayerEnabled(data->axesLayer.get(), renderPreferences->drawAxes);