SPEC-2513 Fixes to enable w4701 (#1105)

* Some fixes

* more fixes

* fixes for debug
This commit is contained in:
Esteban Papp
2021-06-03 09:30:33 -07:00
committed by GitHub
parent e340f3ca56
commit 29c71b4e53
21 changed files with 42 additions and 25 deletions
+2 -1
View File
@@ -2239,7 +2239,8 @@ uint32 CFileUtil::GetAttributes(const char* filename, bool bUseSourceControl /*=
bool CFileUtil::CompareFiles(const QString& strFilePath1, const QString& strFilePath2)
{
// Get the size of both files. If either fails we say they are different (most likely one doesn't exist)
uint64 size1, size2;
uint64 size1 = 0;
uint64 size2 = 0;
if (!GetDiskFileSize(strFilePath1.toUtf8().data(), size1) || !GetDiskFileSize(strFilePath2.toUtf8().data(), size2))
{
return false;