Editor code: tidy up BOOLs,NULLs and overrides pt4.
A few 'typedefs' replaced by 'using's This shouldn't have any functional changes at all, just c++17 modernization It's a part 4 of a split #2847 Signed-off-by: Nemerle <nemerle5+git@gmail.com>
This commit is contained in:
@@ -228,7 +228,7 @@ namespace Path
|
||||
{
|
||||
return (path.endsWith(QStringLiteral("\\")) || path.endsWith(QStringLiteral("/")));
|
||||
}
|
||||
|
||||
|
||||
template<size_t size>
|
||||
inline bool EndsWithSlash(CryStackStringT<char, size>* path)
|
||||
{
|
||||
@@ -236,15 +236,15 @@ namespace Path
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (
|
||||
((*path)[path->size() - 1] != '\\') ||
|
||||
((*path)[path->size() - 1] != '/')
|
||||
((*path)[path->size() - 1] != '/')
|
||||
)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -336,9 +336,9 @@ namespace Path
|
||||
{
|
||||
char path_buffer[_MAX_PATH];
|
||||
#ifdef AZ_COMPILER_MSVC
|
||||
_makepath_s(path_buffer, AZ_ARRAY_SIZE(path_buffer), NULL, dir.toUtf8().data(), filename.toUtf8().data(), ext.toUtf8().data());
|
||||
_makepath_s(path_buffer, AZ_ARRAY_SIZE(path_buffer), nullptr, dir.toUtf8().data(), filename.toUtf8().data(), ext.toUtf8().data());
|
||||
#else
|
||||
_makepath(path_buffer, NULL, dir.toUtf8().data(), filename.toUtf8().data(), ext.toUtf8().data());
|
||||
_makepath(path_buffer, nullptr, dir.toUtf8().data(), filename.toUtf8().data(), ext.toUtf8().data());
|
||||
#endif
|
||||
return CaselessPaths(path_buffer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user