projects
/
openitg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53acb18
)
Don't return false as a pointer
author
Mikko Rasa
<tdb@tdb.fi>
Mon, 25 Jun 2012 20:46:35 +0000
(23:46 +0300)
committer
Mikko Rasa
<tdb@tdb.fi>
Mon, 25 Jun 2012 20:46:35 +0000
(23:46 +0300)
src/RageLog.cpp
patch
|
blob
|
history
src/RageSurfaceUtils.cpp
patch
|
blob
|
history
diff --git
a/src/RageLog.cpp
b/src/RageLog.cpp
index
bfaffbf
..
b9e663d
100755
(executable)
--- 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
25852d9
..
4146f71
100755
(executable)
--- 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) )