diff --git a/code/nel/src/3d/vertex_program_parse.cpp b/code/nel/src/3d/vertex_program_parse.cpp
index 9b535d551..af3a70b96 100644
--- a/code/nel/src/3d/vertex_program_parse.cpp
+++ b/code/nel/src/3d/vertex_program_parse.cpp
@@ -885,7 +885,7 @@ bool CVPParser::parseInstruction(CVPInstruction &instr, std::string &errorOutput
}
// it is not allowed to write to an adress register except for ARL
- if (instrStr != 'ARL ')
+ if (instrStr != NELID("ARL"))
{
if (instr.Dest.Type == CVPOperand::AddressRegister)
{
diff --git a/code/nel/src/pacs/primitive_block_pacs.cpp b/code/nel/src/pacs/primitive_block_pacs.cpp
index 1fc3e15af..1ee0615ea 100644
--- a/code/nel/src/pacs/primitive_block_pacs.cpp
+++ b/code/nel/src/pacs/primitive_block_pacs.cpp
@@ -16,6 +16,7 @@
#include "stdpacs.h"
#include "nel/misc/i_xml.h"
+#include "nel/misc/stream.h"
#include "nel/pacs/primitive_block.h"
diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/mission_compiler/mission_compiler_main_window.ui b/code/nel/tools/3d/object_viewer_qt/src/plugins/mission_compiler/mission_compiler_main_window.ui
index dace315ab..3adc8e176 100644
--- a/code/nel/tools/3d/object_viewer_qt/src/plugins/mission_compiler/mission_compiler_main_window.ui
+++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/mission_compiler/mission_compiler_main_window.ui
@@ -253,10 +253,7 @@
- horizontalLayoutWidget
dataDirLabel
- horizontalLayoutWidget
-
diff --git a/code/nel/tools/3d/object_viewer_qt/src/plugins/object_viewer/particle_system/scheme_manager.cpp b/code/nel/tools/3d/object_viewer_qt/src/plugins/object_viewer/particle_system/scheme_manager.cpp
index 74b5cfbdb..b859d9d66 100644
--- a/code/nel/tools/3d/object_viewer_qt/src/plugins/object_viewer/particle_system/scheme_manager.cpp
+++ b/code/nel/tools/3d/object_viewer_qt/src/plugins/object_viewer/particle_system/scheme_manager.cpp
@@ -50,8 +50,8 @@ void CSchemeManager::getSchemes(const std::string &type, std::vectorwriteToFile(TmpScriptFileName);
- if (!isOK) return false;
+ if (!isOK) return "";
// create a new script object and assign the tmp file to it
CCharScanScript script;
diff --git a/code/ryzom/server/src/input_output_service/messages.cpp b/code/ryzom/server/src/input_output_service/messages.cpp
index 1abec0011..4af959590 100644
--- a/code/ryzom/server/src/input_output_service/messages.cpp
+++ b/code/ryzom/server/src/input_output_service/messages.cpp
@@ -336,7 +336,7 @@ void cbImpulsionFilter( CMessage& msgin, const string &serviceName, TServiceId s
} // impulsionFilter //
-static char*DebugChatModeName[] =
+static const char* DebugChatModeName[] =
{
"say",
"shout",
diff --git a/code/ryzom/server/src/input_output_service/parameter_traits.cpp b/code/ryzom/server/src/input_output_service/parameter_traits.cpp
index 8eecfd1de..a0b45fcf7 100644
--- a/code/ryzom/server/src/input_output_service/parameter_traits.cpp
+++ b/code/ryzom/server/src/input_output_service/parameter_traits.cpp
@@ -42,7 +42,7 @@ extern CVariable VerboseStringManager;
#define LOG if (!VerboseStringManager) {} else nlinfo
-char *OperatorNames[] =
+const char *OperatorNames[] =
{
"equal",
"notEqual",
diff --git a/code/ryzom/server/src/logger_service/logger_service.cpp b/code/ryzom/server/src/logger_service/logger_service.cpp
index 245fe4c89..dba4cae57 100644
--- a/code/ryzom/server/src/logger_service/logger_service.cpp
+++ b/code/ryzom/server/src/logger_service/logger_service.cpp
@@ -521,9 +521,7 @@ public:
BsiGlobal);
saveFile.FileName = threadResult.OutputFilename;
- char *newLine="\n";
-
-
+ const char *newLine="\n";
list::const_iterator first(threadResult.Lines->begin()), last(threadResult.Lines->end());
for (uint32 localCounter = 0; first != last; ++first, ++localCounter)
diff --git a/code/ryzom/server/src/pd_support_service/daily_commands.cpp b/code/ryzom/server/src/pd_support_service/daily_commands.cpp
index 429823160..e3f6d718c 100644
--- a/code/ryzom/server/src/pd_support_service/daily_commands.cpp
+++ b/code/ryzom/server/src/pd_support_service/daily_commands.cpp
@@ -104,7 +104,7 @@ public:
FILE* fileHandle= fopen(DailyActivityLogFileName,"ab");
nlassert(fileHandle!=NULL);
fprintf(fileHandle,"%02u/%02u/%u CDailyTaskScheduler: Started: %02u:%02u, Finished: %02u:%02u, Executed %u commands Started %u Jobs\n",
- ptm->tm_mday, ptm->tm_mon+1, ptm->tm_year+1900, startTime/3600%24, startTime/60%60, endTime/3600%24, endTime/60%60, commandsVar==NULL?0:commandsVar->size(), jobsRemaining );
+ ptm->tm_mday, ptm->tm_mon+1, ptm->tm_year+1900, (uint)startTime/3600%24, (uint)startTime/60%60, (uint)endTime/3600%24, (uint)endTime/60%60, commandsVar==NULL?0:commandsVar->size(), jobsRemaining );
nlinfo("JobManager state: %s",CJobManager::getInstance()->getStatus().c_str());
fclose(fileHandle);
}
diff --git a/code/ryzom/server/src/pd_support_service/stat_char_commands.cpp b/code/ryzom/server/src/pd_support_service/stat_char_commands.cpp
index 611bd9b6b..ed5641455 100644
--- a/code/ryzom/server/src/pd_support_service/stat_char_commands.cpp
+++ b/code/ryzom/server/src/pd_support_service/stat_char_commands.cpp
@@ -518,13 +518,13 @@ static std::string getActiveOutputPath()
if (TheCharScanScriptFile==NULL)
{
nlwarning("There is no active script file right now from which to extract output directory");
- return false;
+ return "";
}
bool isOK=true;
// write the current script file to a tmp file
isOK=TheCharScanScriptFile->writeToFile(TmpScriptFileName);
- if (!isOK) return false;
+ if (!isOK) return "";
// create a new script object and assign the tmp file to it
CCharScanScriptFile script;
diff --git a/code/ryzom/server/src/persistant_data_service/db_manager.cpp b/code/ryzom/server/src/persistant_data_service/db_manager.cpp
index 3160b9689..6acdf687c 100644
--- a/code/ryzom/server/src/persistant_data_service/db_manager.cpp
+++ b/code/ryzom/server/src/persistant_data_service/db_manager.cpp
@@ -176,7 +176,7 @@ CTimestamp CDbManager::_LastUpdateTime;
*/
CDatabase* CDbManager::createDatabase(TDatabaseId id, CLog* log)
{
- CHECK_DB_MGR_INIT(createDatabase, false);
+ CHECK_DB_MGR_INIT(createDatabase, NULL);
// check db doesn't exist yet
CDatabase* db = getDatabase(id);
@@ -229,7 +229,7 @@ bool CDbManager::deleteDatabase(TDatabaseId id, CLog* log)
*/
CDatabase* CDbManager::loadDatabase(TDatabaseId id, const string& description, CLog* log)
{
- CHECK_DB_MGR_INIT(loadDatabase, false);
+ CHECK_DB_MGR_INIT(loadDatabase, NULL);
nlinfo("CDbManager::loadDatabase(): load/setup database '%d'", id);
diff --git a/code/ryzom/server/src/persistant_data_service/pds_database.cpp b/code/ryzom/server/src/persistant_data_service/pds_database.cpp
index 13202bb1e..66b272d5c 100644
--- a/code/ryzom/server/src/persistant_data_service/pds_database.cpp
+++ b/code/ryzom/server/src/persistant_data_service/pds_database.cpp
@@ -1195,7 +1195,7 @@ CDatabase* CDatabase::adapt(const string& description)
if (!buildReference())
{
PDS_WARNING("adapt(): failed to buildReference()");
- return false;
+ return NULL;
}
}
diff --git a/code/ryzom/server/src/persistant_data_service/pds_type.cpp b/code/ryzom/server/src/persistant_data_service/pds_type.cpp
index eb8ea5f19..46f9fb924 100644
--- a/code/ryzom/server/src/persistant_data_service/pds_type.cpp
+++ b/code/ryzom/server/src/persistant_data_service/pds_type.cpp
@@ -194,7 +194,7 @@ string CType::getIndexName(TEnumValue value, bool verbose) const
if (!isIndex())
{
PDS_WARNING("getIndexName(): type is not an index");
- return false;
+ return "";
}
if (isEnum())
diff --git a/code/ryzom/tools/server/build_world_packed_col/build_world_packed_col.cpp b/code/ryzom/tools/server/build_world_packed_col/build_world_packed_col.cpp
index e7a1b2a33..a9d1daa9e 100644
--- a/code/ryzom/tools/server/build_world_packed_col/build_world_packed_col.cpp
+++ b/code/ryzom/tools/server/build_world_packed_col/build_world_packed_col.cpp
@@ -276,7 +276,7 @@ int main(int argc, char* argv[])
try
{
CIFile f(builderConfig.CWMapCachePath + "/" + shortname + ".cw_height");
- f.serialCheck((uint32) 'OBSI');
+ f.serialCheck(NELID("OBSI"));
f.serial(xmin);
f.serial(xmax);
f.serial(ymin);
@@ -322,7 +322,7 @@ int main(int argc, char* argv[])
// now extract each island height
// read back coordinates
CIFile f(builderConfig.CWMapCachePath + "/" + shortname + ".cw_height");
- f.serialCheck((uint32) 'OBSI');
+ f.serialCheck(NELID("OBSI"));
f.serial(xmin);
f.serial(xmax);
f.serial(ymin);
@@ -349,7 +349,7 @@ int main(int argc, char* argv[])
try
{
COFile f(builderConfig.OutputPath + "/" + completeIslands[l]->Island + ".island_hm");
- f.serialCheck((uint32) 'MHSI');
+ f.serialCheck(NELID("MHSI"));
f.serial(island);
// export tga for check
if (builderConfig.HeightMapsAsTga)
diff --git a/code/ryzom/tools/server/build_world_packed_col/packed_world_builder.cpp b/code/ryzom/tools/server/build_world_packed_col/packed_world_builder.cpp
index d08982ae4..810540cf8 100644
--- a/code/ryzom/tools/server/build_world_packed_col/packed_world_builder.cpp
+++ b/code/ryzom/tools/server/build_world_packed_col/packed_world_builder.cpp
@@ -401,7 +401,7 @@ void CPackedWorldBuilder::fly(std::vector &islands, float camSpeed
// fly into scene
try
{
- CNELU::init(1024, 768, CViewport(), 32, true, NULL, false, true);
+ CNELU::init(1024, 768, CViewport(), 32, true, EmptyWindow, false, true);
}
catch(const Exception &e)
{
diff --git a/code/ryzom/tools/server/build_world_packed_col/test_col_world.cpp b/code/ryzom/tools/server/build_world_packed_col/test_col_world.cpp
index 21f85b760..27e56403f 100644
--- a/code/ryzom/tools/server/build_world_packed_col/test_col_world.cpp
+++ b/code/ryzom/tools/server/build_world_packed_col/test_col_world.cpp
@@ -607,7 +607,7 @@ int main(int argc, char* argv[])
// fly into scene
try
{
- CNELU::init(1024, 768, CViewport(), 32, true, NULL, false, true);
+ CNELU::init(1024, 768, CViewport(), 32, true, EmptyWindow, false, true);
}
catch(const Exception &e)
{