DBG: fixed warning in TraceRecord
This commit is contained in:
parent
5e01b34178
commit
5a5f64e1e1
|
@ -387,11 +387,11 @@ unsigned int TraceRecordManager::getModuleIndex(std::string moduleName)
|
||||||
{
|
{
|
||||||
auto iterator = std::find(ModuleNames.begin(), ModuleNames.end(), moduleName);
|
auto iterator = std::find(ModuleNames.begin(), ModuleNames.end(), moduleName);
|
||||||
if(iterator != ModuleNames.end())
|
if(iterator != ModuleNames.end())
|
||||||
return iterator - ModuleNames.begin(); //TODO: warning
|
return (unsigned int)(iterator - ModuleNames.begin());
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ModuleNames.push_back(moduleName);
|
ModuleNames.push_back(moduleName);
|
||||||
return ModuleNames.size() - 1; //TODO: warning
|
return (unsigned int)(ModuleNames.size() - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue