Kaydet (Commit) c0997ff4 authored tarafından Julien Nabet's avatar Julien Nabet

Some cppcheck cleaning in formula

Change-Id: I410ab7bbd74b616fcb0a3ed3b0c917cebeac23c6
üst 8efbd993
...@@ -72,12 +72,11 @@ sal_Bool FormulaHelper::GetNextFunc( const String& rFormula, ...@@ -72,12 +72,11 @@ sal_Bool FormulaHelper::GetNextFunc( const String& rFormula,
const IFunctionDescription** ppFDesc, // = NULL const IFunctionDescription** ppFDesc, // = NULL
::std::vector< ::rtl::OUString>* pArgs ) const // = NULL ::std::vector< ::rtl::OUString>* pArgs ) const // = NULL
{ {
sal_Bool bFound = sal_False;
xub_StrLen nOldStart = rFStart; xub_StrLen nOldStart = rFStart;
String aFname; String aFname;
rFStart = GetFunctionStart( rFormula, rFStart, bBack, ppFDesc ? &aFname : NULL ); rFStart = GetFunctionStart( rFormula, rFStart, bBack, ppFDesc ? &aFname : NULL );
bFound = ( rFStart != FUNC_NOTFOUND ); sal_Bool bFound = ( rFStart != FUNC_NOTFOUND );
if ( bFound ) if ( bFound )
{ {
......
...@@ -114,7 +114,6 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt ) ...@@ -114,7 +114,6 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt )
KeyCode aCode = rKEvt.GetKeyCode(); KeyCode aCode = rKEvt.GetKeyCode();
sal_Bool bUp = (aCode.GetCode() == KEY_UP); sal_Bool bUp = (aCode.GetCode() == KEY_UP);
sal_Bool bDown = (aCode.GetCode() == KEY_DOWN); sal_Bool bDown = (aCode.GetCode() == KEY_DOWN);
ArgEdit* pEd = NULL;
if ( pSlider if ( pSlider
&& ( !aCode.IsShift() && !aCode.IsMod1() && !aCode.IsMod2() ) && ( !aCode.IsShift() && !aCode.IsMod1() && !aCode.IsMod2() )
...@@ -122,9 +121,10 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt ) ...@@ -122,9 +121,10 @@ void ArgEdit::KeyInput( const KeyEvent& rKEvt )
{ {
if ( nArgs > 1 ) if ( nArgs > 1 )
{ {
long nThumb = pSlider->GetThumbPos(); ArgEdit* pEd = NULL;
sal_Bool bDoScroll = sal_False; long nThumb = pSlider->GetThumbPos();
sal_Bool bChangeFocus = sal_False; sal_Bool bDoScroll = sal_False;
sal_Bool bChangeFocus = sal_False;
if ( bDown ) if ( bDown )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment