src/main.cpp

changeset 352
59a31dd8a33a
parent 351
9e3c1f838406
child 353
c229d38f04c6
--- 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);

mercurial