diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-12-28 17:59:40 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-12-28 18:00:02 +0100 |
commit | f52e8908a6924ad7786874ca45deb46f0dfe4e30 (patch) | |
tree | 7536e61e050fb835df979138607657815139adc7 /basic/source/comp | |
parent | 479a0be4ec6adb9cc254f597f90388d9cde8b8ec (diff) |
Some cppcheck cleaning in basic
Change-Id: I01ad0d95a94ede6998850937c58495920e7a4113
Diffstat (limited to 'basic/source/comp')
-rw-r--r-- | basic/source/comp/sbcomp.cxx | 2 | ||||
-rw-r--r-- | basic/source/comp/token.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/comp/sbcomp.cxx b/basic/source/comp/sbcomp.cxx index 45c94148529c..c7f048f6c3fa 100644 --- a/basic/source/comp/sbcomp.cxx +++ b/basic/source/comp/sbcomp.cxx @@ -643,7 +643,6 @@ void dbg_traceStep( SbModule* pModule, sal_uInt32 nPC, sal_Int32 nCallLvl ) void dbg_traceNotifyCall( SbModule* pModule, SbMethod* pMethod, sal_Int32 nCallLvl, bool bLeave ) { - static const char* pSeparator = "' ================================================================================"; if( !GbTraceOn ) { @@ -763,6 +762,7 @@ void dbg_traceNotifyCall( SbModule* pModule, SbMethod* pMethod, sal_Int32 nCallL int nIndent = nCallLvl * GnIndentPerCallLevel; if( !bLeave && !bOwnBlockSteps ) { + static const char* pSeparator = "' ================================================================================"; lcl_lineOut( "" ); lcl_lineOut( pSeparator, lcl_getSpaces( nIndent ) ); } diff --git a/basic/source/comp/token.cxx b/basic/source/comp/token.cxx index a6054c19415a..ca62163838bb 100644 --- a/basic/source/comp/token.cxx +++ b/basic/source/comp/token.cxx @@ -214,13 +214,13 @@ SbiTokenizer::SbiTokenizer( const ::rtl::OUString& rSrc, StarBASIC* pb ) : SbiScanner( rSrc, pb ) { pTokTable = aTokTable_Basic; - TokenTable *tp; bEof = bAs = false; eCurTok = NIL; ePush = NIL; bEos = bKeywords = bErrorIsSymbol = true; if( !nToken ) { + TokenTable *tp; for( nToken = 0, tp = pTokTable; tp->t; nToken++, tp++ ) {} } |