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
This commit is contained in:
Josh Holtrop 2009-01-29 14:49:41 +00:00
parent 866f22a637
commit 47dd5a31fe
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@
#include "PointLight.h"
using namespace std;
Scene::Scene(map<string, const char *> options,
Scene::Scene(const map<string, const char *> & options,
const char * filename)
{
m_width = 800;
@ -27,7 +27,7 @@ Scene::Scene(map<string, const char *> options,
load(filename);
/* after loading the scene file, apply any command-line render options */
for (map<string, const char *>::iterator it = options.begin();
for (map<const string, const char *>::const_iterator it = options.begin();
it != options.end();
it++)
{

View File

@ -26,7 +26,7 @@ class Scene
};
};
Scene(std::map<std::string, const char *> options,
Scene(const std::map<std::string, const char *> & options,
const char * filename);
~Scene();
void render();