# HG changeset patch # User helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1289231208 0 # Node ID 61a5f86a0db351880cf2734eddb929a413cec0e2 # Parent 6e53cc43402eda735a2f24ba016236e2009d2ace * Fixed the warnings that were introduced by the light branch merge. diff -r 6e53cc43402e -r 61a5f86a0db3 engine/core/controller/enginesettings.cpp --- a/engine/core/controller/enginesettings.cpp Sun Nov 07 21:45:23 2010 +0000 +++ b/engine/core/controller/enginesettings.cpp Mon Nov 08 15:46:48 2010 +0000 @@ -50,8 +50,8 @@ m_defaultfontpath(""), m_defaultfontsize(8), m_defaultfontglyphs(""), - m_lighting(0), - m_iscolorkeyenabled(false){ + m_iscolorkeyenabled(false), + m_lighting(0) { m_colorkey.r = 255; m_colorkey.g = 0; m_colorkey.b = 255; diff -r 6e53cc43402e -r 61a5f86a0db3 engine/core/view/renderers/instancerenderer.cpp --- a/engine/core/view/renderers/instancerenderer.cpp Sun Nov 07 21:45:23 2010 +0000 +++ b/engine/core/view/renderers/instancerenderer.cpp Mon Nov 08 15:46:48 2010 +0000 @@ -168,7 +168,7 @@ std::string str_name = instance->getObject()->getNamespace(); std::list::iterator group_it = infoa.groups.begin(); for(;group_it != infoa.groups.end(); ++group_it) { - if(str_name.find((*group_it)) != -1) { + if(str_name.find((*group_it)) != std::string::npos) { ScreenPoint p; Rect rec; p = cam->toScreenCoordinates(infoa.instance->getLocation().getMapCoordinates()); @@ -218,7 +218,7 @@ std::string lit_name = instance->getObject()->getNamespace(); std::list::iterator unlit_it = m_unlit_groups.begin(); for(;unlit_it != m_unlit_groups.end(); ++unlit_it) { - if(lit_name.find(*unlit_it) != -1) { + if(lit_name.find(*unlit_it) != std::string::npos) { m_renderbackend->setStencilTest(255, 2, 7); found = true; break; @@ -479,7 +479,7 @@ for(;group_it != groups.end(); ++group_it) { std::list::iterator unlit_it = m_unlit_groups.begin(); for(;unlit_it != m_unlit_groups.end(); ++unlit_it) { - if((*group_it).find(*unlit_it) != -1) { + if((*group_it).find(*unlit_it) != std::string::npos) { m_unlit_groups.remove(*unlit_it); break; } diff -r 6e53cc43402e -r 61a5f86a0db3 engine/core/view/renderers/lightrenderer.h --- a/engine/core/view/renderers/lightrenderer.h Sun Nov 07 21:45:23 2010 +0000 +++ b/engine/core/view/renderers/lightrenderer.h Mon Nov 08 15:46:48 2010 +0000 @@ -97,7 +97,7 @@ virtual int getStencil() { return 0; }; virtual float getAlpha() { return 0; }; virtual void removeStencil() {}; - virtual std::vector getColor() {}; + virtual std::vector getColor() { return std::vector(); }; virtual float getRadius() { return 0; }; virtual int getSubdivisions() { return 0; }; virtual float getXStretch() { return 0; };