Skip to content
Snippets Groups Projects
Commit 76d5163e authored by drausch's avatar drausch
Browse files

fixed pointer-is-NULL comparisons

parent 9ce32cd5
No related branches found
No related tags found
1 merge request!15Feature/clang compile fixes
...@@ -91,7 +91,7 @@ VistaFrameSeriesCapture::~VistaFrameSeriesCapture() ...@@ -91,7 +91,7 @@ VistaFrameSeriesCapture::~VistaFrameSeriesCapture()
bool VistaFrameSeriesCapture::InitCaptureEveryFrame( const std::string& sLocation, const std::string& sFilenamePattern ) bool VistaFrameSeriesCapture::InitCaptureEveryFrame( const std::string& sLocation, const std::string& sFilenamePattern )
{ {
if( m_pWindow == false ) if( m_pWindow == NULL )
return false; return false;
VistaType::microtime nTime = m_pSystem->GetFrameClock(); VistaType::microtime nTime = m_pSystem->GetFrameClock();
...@@ -126,7 +126,7 @@ bool VistaFrameSeriesCapture::InitCaptureEveryFrame( const std::string& sLocatio ...@@ -126,7 +126,7 @@ bool VistaFrameSeriesCapture::InitCaptureEveryFrame( const std::string& sLocatio
bool VistaFrameSeriesCapture::InitCaptureEveryNthFrame( const std::string& sLocation, const std::string& sFilenamePattern, const int nFrame ) bool VistaFrameSeriesCapture::InitCaptureEveryNthFrame( const std::string& sLocation, const std::string& sFilenamePattern, const int nFrame )
{ {
if( m_pWindow == false ) if( m_pWindow == NULL )
return false; return false;
VistaType::microtime nTime = m_pSystem->GetFrameClock(); VistaType::microtime nTime = m_pSystem->GetFrameClock();
...@@ -162,7 +162,7 @@ bool VistaFrameSeriesCapture::InitCaptureEveryNthFrame( const std::string& sLoca ...@@ -162,7 +162,7 @@ bool VistaFrameSeriesCapture::InitCaptureEveryNthFrame( const std::string& sLoca
bool VistaFrameSeriesCapture::InitCapturePeriodically( const std::string& sLocation, const std::string& sFilenamePattern, const VistaType::microtime nPeriod ) bool VistaFrameSeriesCapture::InitCapturePeriodically( const std::string& sLocation, const std::string& sFilenamePattern, const VistaType::microtime nPeriod )
{ {
if( m_pWindow == false ) if( m_pWindow == NULL )
return false; return false;
VistaType::microtime nTime = m_pSystem->GetFrameClock(); VistaType::microtime nTime = m_pSystem->GetFrameClock();
...@@ -198,7 +198,7 @@ bool VistaFrameSeriesCapture::InitCapturePeriodically( const std::string& sLocat ...@@ -198,7 +198,7 @@ bool VistaFrameSeriesCapture::InitCapturePeriodically( const std::string& sLocat
bool VistaFrameSeriesCapture::InitCaptureWithFramerate( const std::string& sLocation, const std::string& sFilenamePattern, const float nFramerate ) bool VistaFrameSeriesCapture::InitCaptureWithFramerate( const std::string& sLocation, const std::string& sFilenamePattern, const float nFramerate )
{ {
if( m_pWindow == false ) if( m_pWindow == NULL )
return false; return false;
VistaType::microtime nTime = m_pSystem->GetFrameClock(); VistaType::microtime nTime = m_pSystem->GetFrameClock();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment