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

Some cppcheck cleaning in basic

Change-Id: I01ad0d95a94ede6998850937c58495920e7a4113
üst 479a0be4
...@@ -643,7 +643,6 @@ void dbg_traceStep( SbModule* pModule, sal_uInt32 nPC, sal_Int32 nCallLvl ) ...@@ -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 ) void dbg_traceNotifyCall( SbModule* pModule, SbMethod* pMethod, sal_Int32 nCallLvl, bool bLeave )
{ {
static const char* pSeparator = "' ================================================================================";
if( !GbTraceOn ) if( !GbTraceOn )
{ {
...@@ -763,6 +762,7 @@ void dbg_traceNotifyCall( SbModule* pModule, SbMethod* pMethod, sal_Int32 nCallL ...@@ -763,6 +762,7 @@ void dbg_traceNotifyCall( SbModule* pModule, SbMethod* pMethod, sal_Int32 nCallL
int nIndent = nCallLvl * GnIndentPerCallLevel; int nIndent = nCallLvl * GnIndentPerCallLevel;
if( !bLeave && !bOwnBlockSteps ) if( !bLeave && !bOwnBlockSteps )
{ {
static const char* pSeparator = "' ================================================================================";
lcl_lineOut( "" ); lcl_lineOut( "" );
lcl_lineOut( pSeparator, lcl_getSpaces( nIndent ) ); lcl_lineOut( pSeparator, lcl_getSpaces( nIndent ) );
} }
......
...@@ -214,13 +214,13 @@ SbiTokenizer::SbiTokenizer( const ::rtl::OUString& rSrc, StarBASIC* pb ) ...@@ -214,13 +214,13 @@ SbiTokenizer::SbiTokenizer( const ::rtl::OUString& rSrc, StarBASIC* pb )
: SbiScanner( rSrc, pb ) : SbiScanner( rSrc, pb )
{ {
pTokTable = aTokTable_Basic; pTokTable = aTokTable_Basic;
TokenTable *tp;
bEof = bAs = false; bEof = bAs = false;
eCurTok = NIL; eCurTok = NIL;
ePush = NIL; ePush = NIL;
bEos = bKeywords = bErrorIsSymbol = true; bEos = bKeywords = bErrorIsSymbol = true;
if( !nToken ) if( !nToken )
{ {
TokenTable *tp;
for( nToken = 0, tp = pTokTable; tp->t; nToken++, tp++ ) for( nToken = 0, tp = pTokTable; tp->t; nToken++, tp++ )
{} {}
} }
......
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