Fixed: Compilation under Linux

--HG--
branch : develop
hg/feature/material-editor
kervala 9 years ago
parent ec8d9ea266
commit 394884ffd9

@ -61,19 +61,19 @@ namespace STAT_GLOBALS
NLMISC::CSString getInputFilePath(const NLMISC::CSString& path)
{
NLMISC::CSString pathRoot= NLMISC::CPath::standardizePath(InputFileDirectory.get());
return (path.left((uint)pathRoot.size())==pathRoot)? path: pathRoot+path;
return path.left((uint)pathRoot.size()) == pathRoot ? path : CSString(pathRoot+path);
}
NLMISC::CSString getScriptFilePath(const NLMISC::CSString& path)
{
NLMISC::CSString pathRoot= NLMISC::CPath::standardizePath(ScriptDirectory.get());
return (path.left((uint)pathRoot.size())==pathRoot)? path: pathRoot+path;
return path.left((uint)pathRoot.size()) == pathRoot ? path : CSString(pathRoot+path);
}
NLMISC::CSString getOutputFilePath(const NLMISC::CSString& path)
{
NLMISC::CSString pathRoot= NLMISC::CPath::standardizePath(OutputDirectory.get());
return (path.left((uint)pathRoot.size())==pathRoot)? path: pathRoot+path;
return path.left((uint)pathRoot.size()) == pathRoot ? path : CSString(pathRoot+path);
}

@ -61,19 +61,19 @@ namespace STAT_GLOBALS
NLMISC::CSString getInputFilePath(const NLMISC::CSString& path)
{
NLMISC::CSString pathRoot= NLMISC::CPath::standardizePath(InputFileDirectory.get());
return path.left((uint)pathRoot.size()) == pathRoot ? path:pathRoot+path;
return path.left((uint)pathRoot.size()) == pathRoot ? path : CSString(pathRoot+path);
}
NLMISC::CSString getScriptFilePath(const NLMISC::CSString& path)
{
NLMISC::CSString pathRoot= NLMISC::CPath::standardizePath(ScriptDirectory.get());
return path.left((uint)pathRoot.size()) == pathRoot ? path:pathRoot+path;
return path.left((uint)pathRoot.size()) == pathRoot ? path : CSString(pathRoot+path);
}
NLMISC::CSString getOutputFilePath(const NLMISC::CSString& path)
{
NLMISC::CSString pathRoot= NLMISC::CPath::standardizePath(OutputDirectory.get());
return path.left((uint)pathRoot.size()) == pathRoot ? path:pathRoot+path;
return path.left((uint)pathRoot.size()) == pathRoot ? path : CSString(pathRoot+path);
}

Loading…
Cancel
Save