Fixed: Compile errors under Linux.

This commit is contained in:
kaetemi 2012-04-05 17:45:53 +02:00
parent 8d14415e93
commit c366d1753a
2 changed files with 13 additions and 13 deletions

View file

@ -23,7 +23,7 @@
#include <nel/misc/path.h>
#include <nel/ligo/primitive_utils.h>
#include <nel/ligo/primitive.h>
#include <nel/ligo/primitive.h>
#include <nel/ligo/ligo_config.h>
#include <string.h>
@ -81,7 +81,7 @@ MissionCompilerMainWindow::MissionCompilerMainWindow(QWidget *parent) :
connect(Core::ICore::instance(), SIGNAL(changeSettings()), this, SLOT(handleChangedSettings()));
// Set the default data dir to the primitives path.
QSettings *settings = Core::ICore::instance()->settings();
QSettings *settings = Core::ICore::instance()->settings();
settings->beginGroup(Core::Constants::DATA_PATH_SECTION);
m_lastDir = settings->value(Core::Constants::PRIMITIVES_PATH).toString();
ui->dataDirEdit->setText(m_lastDir);
@ -381,7 +381,7 @@ bool MissionCompilerMainWindow::parsePrimForMissions(NLLIGO::IPrimitive const *p
{
std::string value;
// if the node is a mission parse it
if (prim->getPropertyByName("class",value) && !stricmp(value.c_str(),"mission") )
if (prim->getPropertyByName("class",value) && !NLMISC::stricmp(value.c_str(),"mission") )
{
std::string name;
prim->getPropertyByName("name",name);
@ -460,20 +460,20 @@ void MissionCompilerMainWindow::loadConfig() {
}
void MissionCompilerMainWindow::saveConfig() {
QSettings *settings = Core::ICore::instance()->settings();
settings->beginGroup(MISSION_COMPILER_SECTION);
QSettings *settings = Core::ICore::instance()->settings();
settings->beginGroup(MISSION_COMPILER_SECTION);
QStringList servers;
for(int row = 0; row < ui->publishServersList->count(); row++)
{
QListWidgetItem *item = ui->publishServersList->item(row);
if(item->checkState() == Qt::Checked)
servers << item->text();
}
settings->setValue(SETTING_PUBLISH_SERVER_CHECKS, servers);
settings->endGroup();
}
settings->setValue(SETTING_PUBLISH_SERVER_CHECKS, servers);
settings->endGroup();
settings->sync();
}

View file

@ -22,7 +22,7 @@
#include "nel/misc/types_nl.h"
#include "nel/misc/stream.h"
#include "mirrored_data_set.h"
#include <stddef.h>
/**
* Read-only handler of a value of a property.
@ -1318,4 +1318,4 @@ protected:
#endif // NL_MIRROR_PROP_VALUE_H
/* End of mirror_prop_value.h */
/* End of mirror_prop_value.h */