Rename forModel -> forEachModel

Sat, 08 Apr 2023 15:52:25 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Sat, 08 Apr 2023 15:52:25 +0300
changeset 352
59a31dd8a33a
parent 351
9e3c1f838406
child 353
c229d38f04c6

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);

mercurial