1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-22 06:22:58 +02:00

Fix further possible, and comment on definite null pointer derefs per cppcheck.

This commit is contained in:
v.audacity
2011-11-20 07:09:46 +00:00
parent 8cc8a275f8
commit 2278cdce95
2 changed files with 11 additions and 9 deletions

View File

@@ -1043,14 +1043,14 @@ wxCursor & ThemeBase::Cursor( int iIndex )
{
wxASSERT( iIndex >= 0 );
EnsureInitialised();
return *(wxCursor*)NULL;
return *(wxCursor*)NULL; // ANSWER-ME: Purposeful null deref?
}
wxFont & ThemeBase::Font( int iIndex )
{
wxASSERT( iIndex >= 0 );
EnsureInitialised();
return *(wxFont*)NULL;
return *(wxFont*)NULL; // ANSWER-ME: Purposeful null deref?
}
/// Replaces both the image and the bitmap.