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

@ -41,7 +41,7 @@ protected:
S32 mSelectedOption; ///< Index into mOptions pointing at the selected option
bool mWrapOptions; ///< Determines if options should "wrap around" at the ends
Row()
Row() : mSelectedOption(0), mWrapOptions(false)
{
VECTOR_SET_ASSOCIATION( mOptions );
}

View file

@ -905,7 +905,7 @@ ConsoleDocClass( DICreateUndoAction,
"@internal");
DICreateUndoAction::DICreateUndoAction( const UTF8* actionName )
: UndoAction( actionName )
: UndoAction( actionName ), mEditor(0), mDatablockId(0)
{
}
@ -993,7 +993,7 @@ ConsoleDocClass( DIDeleteUndoAction,
"@internal");
DIDeleteUndoAction::DIDeleteUndoAction( const UTF8 *actionName )
: UndoAction( actionName )
: UndoAction( actionName ), mEditor(0), mDatablockId(0)
{
}
@ -1081,7 +1081,7 @@ ConsoleDocClass( DBDeleteUndoAction,
"@internal");
DBDeleteUndoAction::DBDeleteUndoAction( const UTF8 *actionName )
: UndoAction( actionName )
: UndoAction( actionName ), mEditor(0), mDatablockId(0)
{
}
@ -1190,7 +1190,7 @@ ConsoleDocClass( DBRetargetUndoAction,
"@internal");
DBRetargetUndoAction::DBRetargetUndoAction( const UTF8 *actionName )
: UndoAction( actionName )
: UndoAction( actionName ), mEditor(0), mDBFromId(0), mDBToId(0)
{
}