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:
parent
866f22a637
commit
47dd5a31fe
@ -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++)
|
||||
{
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user