From 950922193342a68086599def27d7b9a077dfe225 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 25 Jun 2012 23:46:35 +0300 Subject: [PATCH] Don't return false as a pointer --- src/RageLog.cpp | 2 +- src/RageSurfaceUtils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RageLog.cpp b/src/RageLog.cpp index bfaffbf4..b9e663da 100755 --- a/src/RageLog.cpp +++ b/src/RageLog.cpp @@ -360,7 +360,7 @@ void RageLog::AddToRecentLogs( const CString &str ) const char *RageLog::GetRecentLog( int n ) { if( n >= BACKLOG_LINES || n >= backlog_cnt ) - return false; + return NULL; if( backlog_cnt == BACKLOG_LINES ) { diff --git a/src/RageSurfaceUtils.cpp b/src/RageSurfaceUtils.cpp index 25852d9b..4146f71d 100755 --- a/src/RageSurfaceUtils.cpp +++ b/src/RageSurfaceUtils.cpp @@ -782,7 +782,7 @@ RageSurface *RageSurfaceUtils::LoadSurface( CString file ) { RageFile f; if( !f.Open( file ) ) - return false; + return NULL; SurfaceHeader h; if( f.Read( &h, sizeof(h) ) != sizeof(h) ) -- 2.11.0