From 47dd5a31fea99ee294b5479053a82c98636379a7 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 29 Jan 2009 14:49:41 +0000 Subject: [PATCH] fixed strange compile warning in fart.cc by making constructor arguments to Scene::Scene() consts git-svn-id: svn://anubis/fart/trunk@64 7f9b0f55-74a9-4bce-be96-3c2cd072584d --- main/Scene.cc | 4 ++-- main/Scene.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main/Scene.cc b/main/Scene.cc index 4373370..6fba3b6 100644 --- a/main/Scene.cc +++ b/main/Scene.cc @@ -13,7 +13,7 @@ #include "PointLight.h" using namespace std; -Scene::Scene(map options, +Scene::Scene(const map & options, const char * filename) { m_width = 800; @@ -27,7 +27,7 @@ Scene::Scene(map options, load(filename); /* after loading the scene file, apply any command-line render options */ - for (map::iterator it = options.begin(); + for (map::const_iterator it = options.begin(); it != options.end(); it++) { diff --git a/main/Scene.h b/main/Scene.h index a82f5c6..52dd719 100644 --- a/main/Scene.h +++ b/main/Scene.h @@ -26,7 +26,7 @@ class Scene }; }; - Scene(std::map options, + Scene(const std::map & options, const char * filename); ~Scene(); void render();