Merge pull request #1214 from bpay/cppcheck-cleaning

Fix some issues flagged by cppcheck
This commit is contained in:
Daniel Buckmaster 2015-03-01 18:27:40 +11:00
commit 497a15cfd0
38 changed files with 96 additions and 42 deletions

View file

@ -53,6 +53,7 @@ public:
mRunArg = 0;
mThread = 0;
mThreadHnd = 0;
mThreadID = 0;
mDead = false;
};
};

View file

@ -43,13 +43,17 @@ public:
Win32Timer()
{
mPerfCountRemainderCurrent = 0.0f;
mPerfCountRemainderNext = 0.0f;
// Attempt to use QPC for high res timing, otherwise fallback to GTC.
mUsingPerfCounter = QueryPerformanceFrequency((LARGE_INTEGER *) &mFrequency);
if(mUsingPerfCounter)
mUsingPerfCounter = QueryPerformanceCounter((LARGE_INTEGER *) &mPerfCountCurrent);
if(!mUsingPerfCounter)
{
mTickCountCurrent = GetTickCount();
mTickCountNext = 0;
}
}
const S32 getElapsedMs()