mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-30 07:35:59 +00:00
Changed: #825 Remove all warnings when compiling Ryzom
This commit is contained in:
parent
7401b20488
commit
9895da21d0
3 changed files with 14 additions and 14 deletions
|
@ -53,7 +53,7 @@ std::string decodeDbPathId(const std::string& pathid)
|
||||||
std::string shard("");
|
std::string shard("");
|
||||||
uint id;
|
uint id;
|
||||||
|
|
||||||
uint p = pathid.find(':');
|
string::size_type p = pathid.find(':');
|
||||||
|
|
||||||
if (p == std::string::npos)
|
if (p == std::string::npos)
|
||||||
{
|
{
|
||||||
|
|
|
@ -247,7 +247,7 @@ bool CLogAnalyserService::getQueryResult(uint32 queryId, std::string& result, si
|
||||||
|
|
||||||
if (filter.empty())
|
if (filter.empty())
|
||||||
{
|
{
|
||||||
numpage = (_Finished[i]->Result.size()+linePerPage-1) / linePerPage;
|
numpage = ((uint)_Finished[i]->Result.size()+linePerPage-1) / linePerPage;
|
||||||
if (page >= (sint)numpage)
|
if (page >= (sint)numpage)
|
||||||
page = numpage-1;
|
page = numpage-1;
|
||||||
|
|
||||||
|
@ -329,7 +329,7 @@ bool CLogAnalyserService::getQueryResult(uint32 queryId, std::string& result, si
|
||||||
}
|
}
|
||||||
|
|
||||||
// refresh numpage
|
// refresh numpage
|
||||||
numpage = (matchingLines.size()+linePerPage-1) / linePerPage;
|
numpage = ((uint)matchingLines.size()+linePerPage-1) / linePerPage;
|
||||||
if (page >= (sint)numpage)
|
if (page >= (sint)numpage)
|
||||||
page = numpage-1;
|
page = numpage-1;
|
||||||
|
|
||||||
|
@ -374,7 +374,7 @@ void CLogAnalyserService::getQueryList(std::vector<CQuery*>& queries)
|
||||||
{
|
{
|
||||||
_Mutex.enter();
|
_Mutex.enter();
|
||||||
sint i;
|
sint i;
|
||||||
for (i=_Requests.size()-1; i>=0; --i)
|
for (i=(sint)_Requests.size()-1; i>=0; --i)
|
||||||
{
|
{
|
||||||
CQuery* q = _Requests[i];
|
CQuery* q = _Requests[i];
|
||||||
q->State = QueryAwaiting;
|
q->State = QueryAwaiting;
|
||||||
|
@ -387,7 +387,7 @@ void CLogAnalyserService::getQueryList(std::vector<CQuery*>& queries)
|
||||||
queries.push_back(_Current);
|
queries.push_back(_Current);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i=_Finished.size()-1; i>=0; --i)
|
for (i=(sint)_Finished.size()-1; i>=0; --i)
|
||||||
{
|
{
|
||||||
CQuery* q = _Finished[i];
|
CQuery* q = _Finished[i];
|
||||||
q->State = QueryTreated;
|
q->State = QueryTreated;
|
||||||
|
@ -455,7 +455,7 @@ void cbResult(CMemStream &msgin, TSockId host)
|
||||||
|
|
||||||
//nlinfo("received query '%s'", idStr.c_str());
|
//nlinfo("received query '%s'", idStr.c_str());
|
||||||
|
|
||||||
uint pos = idStr.find("%!");
|
string::size_type pos = idStr.find("%!");
|
||||||
if (pos != std::string::npos)
|
if (pos != std::string::npos)
|
||||||
{
|
{
|
||||||
// parse input
|
// parse input
|
||||||
|
|
|
@ -52,7 +52,7 @@ void buildRaceAnimNames(std::vector<string> &raceAnimNames, const std::string &a
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
uint findAnimName(const string &lineLwr, const std::vector<string> &raceAnimNames)
|
string::size_type findAnimName(const string &lineLwr, const std::vector<string> &raceAnimNames)
|
||||||
{
|
{
|
||||||
// line Must contains Name="filename", else CAN BE A LOAD CHAR ANIMATION!!!!
|
// line Must contains Name="filename", else CAN BE A LOAD CHAR ANIMATION!!!!
|
||||||
if(lineLwr.find("name=\"filename\"")==string::npos)
|
if(lineLwr.find("name=\"filename\"")==string::npos)
|
||||||
|
@ -61,11 +61,11 @@ uint findAnimName(const string &lineLwr, const std::vector<string> &raceAnimName
|
||||||
// in the animset, the original file can be a "tr_" ... Not necessarily a "fy_"
|
// in the animset, the original file can be a "tr_" ... Not necessarily a "fy_"
|
||||||
for(uint i=0;i<raceAnimNames.size();i++)
|
for(uint i=0;i<raceAnimNames.size();i++)
|
||||||
{
|
{
|
||||||
uint pos= lineLwr.find(raceAnimNames[i]);
|
string::size_type pos= lineLwr.find(raceAnimNames[i]);
|
||||||
if(pos!=string::npos)
|
if(pos!=string::npos)
|
||||||
return pos;
|
return pos;
|
||||||
}
|
}
|
||||||
return -1;
|
return string::npos;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ***************************************************************************
|
// ***************************************************************************
|
||||||
|
@ -160,8 +160,8 @@ void makeAnimByRace(const std::string &animSetFile, const std::vector<string> &a
|
||||||
raceRestrictionFound= true;
|
raceRestrictionFound= true;
|
||||||
|
|
||||||
// Find the anim name?
|
// Find the anim name?
|
||||||
uint nameIndexInLine= findAnimName(lineLwr, raceAnimNames);
|
string::size_type nameIndexInLine= findAnimName(lineLwr, raceAnimNames);
|
||||||
if(nameIndexInLine!=-1)
|
if(nameIndexInLine!=string::npos)
|
||||||
{
|
{
|
||||||
// Find the enclosing struct
|
// Find the enclosing struct
|
||||||
nlassert(lastStructLine!=0);
|
nlassert(lastStructLine!=0);
|
||||||
|
@ -220,9 +220,9 @@ void makeAnimByRace(const std::string &animSetFile, const std::vector<string> &a
|
||||||
// Append for each race
|
// Append for each race
|
||||||
for(uint k=0;k<raceAnimNames.size();k++)
|
for(uint k=0;k<raceAnimNames.size();k++)
|
||||||
{
|
{
|
||||||
appendRaceAnim(animSetText, nextBlock, copyText, nameLineInBlock, nameIndexInLine, raceAnimNames[k]);
|
appendRaceAnim(animSetText, nextBlock, copyText, nameLineInBlock, (uint)nameIndexInLine, raceAnimNames[k]);
|
||||||
// nextBlock is then shifted
|
// nextBlock is then shifted
|
||||||
nextBlock+= copyText.size();
|
nextBlock+= (uint)copyText.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
someChangeDone= true;
|
someChangeDone= true;
|
||||||
|
@ -248,7 +248,7 @@ void makeAnimByRace(const std::string &animSetFile, const std::vector<string> &a
|
||||||
{
|
{
|
||||||
string str= animSetText[i];
|
string str= animSetText[i];
|
||||||
str+= "\n";
|
str+= "\n";
|
||||||
oFile.serialBuffer((uint8*)str.c_str(), str.size());
|
oFile.serialBuffer((uint8*)str.c_str(), (uint)str.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue