summaryrefslogtreecommitdiff
path: root/rsc/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-20 12:17:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-20 12:17:10 +0000
commite90756745551caf5e7646cea34b41721d2ae61d6 (patch)
tree80b1f8191bf3740b3836609ce8b15b258f932a27 /rsc/source
parent2fb4d4800c3064c3c7b8573ad39c00d51d9bc41b (diff)
cppcheck: unused variable
Diffstat (limited to 'rsc/source')
-rw-r--r--rsc/source/parser/rsclex.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx
index ae7c9ad9dfdb..690a275be903 100644
--- a/rsc/source/parser/rsclex.cxx
+++ b/rsc/source/parser/rsclex.cxx
@@ -118,7 +118,6 @@ UINT32 GetNumber(){
int MakeToken( YYSTYPE * pTokenVal ){
int c1;
- char * pStr;
while( TRUE ){ // Kommentare und Leerzeichen ueberlesen
while( isspace( c ) )
@@ -195,7 +194,7 @@ int MakeToken( YYSTYPE * pTokenVal ){
else
aBuf.append( sal_Char(c) );
}
- pStr = pTokenVal->string = const_cast<char*>(pStringContainer->putString( aBuf.getStr() ));
+ pTokenVal->string = const_cast<char*>(pStringContainer->putString( aBuf.getStr() ));
return( STRING );
}
if (isdigit (c)){