Changed: #825 Remove all warnings when compiling Ryzom

This commit is contained in:
kervala 2012-09-25 13:20:25 +02:00
parent 0795a61516
commit 1374286cab
4 changed files with 6 additions and 4 deletions

View file

@ -60,7 +60,7 @@ QNLWidget::~QNLWidget()
void QNLWidget::init() void QNLWidget::init()
{ {
// create the driver // create the driver
m_driver = NL3D::UDriver::createDriver(NULL, false, NULL); m_driver = NL3D::UDriver::createDriver(0, false);
nlassert(m_driver); nlassert(m_driver);
// initialize the nel 3d viewport // initialize the nel 3d viewport

View file

@ -78,11 +78,11 @@ CInterfaceExprNode *CInterfaceExpr::buildExprTree(const std::string &expr)
{ {
std::string tempStr; std::string tempStr;
formatLuaCall(expr, tempStr); formatLuaCall(expr, tempStr);
if (buildExprTree(tempStr.c_str(), node) == NULL) return false; if (buildExprTree(tempStr.c_str(), node) == NULL) return NULL;
} }
else else
{ {
if (buildExprTree(expr.c_str(), node) == NULL) return false; if (buildExprTree(expr.c_str(), node) == NULL) return NULL;
} }
return node; return node;

View file

@ -148,7 +148,7 @@ namespace R2
public: public:
CDynamicMapService( NLMISC::CConfigFile& confFile, NLNET::IModuleSocket * gateway); CDynamicMapService( NLMISC::CConfigFile& confFile, NLNET::IModuleSocket * gateway);
~CDynamicMapService(); virtual ~CDynamicMapService();
static CDynamicMapService* getInstance(); static CDynamicMapService* getInstance();

View file

@ -21,6 +21,8 @@
class IValue { class IValue {
public: public:
virtual ~IValue() { }
virtual void getValue(IValue &) = 0; virtual void getValue(IValue &) = 0;
virtual void setValue(IValue &) = 0; virtual void setValue(IValue &) = 0;