summaryrefslogtreecommitdiff
path: root/hwpfilter/source/lexer.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:25:38 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:25:38 +0200
commit3c7a66a031331abdb6ed3134e2f1936a6eb5fbb0 (patch)
treefddfefae8c6a46600c449aad5b7d9382d80b7c3b /hwpfilter/source/lexer.cxx
parent9a1909a5d0900211727ac3077116c274c7f7bd8a (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I8a8ba86dd78e30146f7b9dd7071f5641d496a67a
Diffstat (limited to 'hwpfilter/source/lexer.cxx')
-rw-r--r--hwpfilter/source/lexer.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/hwpfilter/source/lexer.cxx b/hwpfilter/source/lexer.cxx
index 9c7cea8820b7..341bebb31aa2 100644
--- a/hwpfilter/source/lexer.cxx
+++ b/hwpfilter/source/lexer.cxx
@@ -203,7 +203,7 @@ static int yy_n_chars; /* number of characters read into yy_ch_buf */
int yyleng;
/* Points to current character in buffer. */
-static char *yy_c_buf_p = (char *) 0;
+static char *yy_c_buf_p = nullptr;
static int yy_init = 1; /* whether we need to initialize */
static int yy_start = 0; /* start state number */
@@ -230,7 +230,7 @@ static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
static void yy_flex_free YY_PROTO(( void * ));
typedef unsigned char YY_CHAR;
-FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
+FILE *yyin = nullptr, *yyout = nullptr;
typedef int yy_state_type;
extern char *yytext;
#define yytext_ptr yytext
@@ -1590,7 +1590,7 @@ static int yy_get_next_buffer()
b->yy_ch_buf = static_cast<char *>(
/* Include room in for 2 EOB chars. */
- yy_flex_realloc( (void *) b->yy_ch_buf,
+ yy_flex_realloc( static_cast<void *>(b->yy_ch_buf),
b->yy_buf_size + 2 ));
}
else
@@ -1811,12 +1811,12 @@ YY_BUFFER_STATE b;
return;
if ( b == yy_current_buffer )
- yy_current_buffer = (YY_BUFFER_STATE) 0;
+ yy_current_buffer = nullptr;
if ( b->yy_is_our_buffer )
- yy_flex_free( (void *) b->yy_ch_buf );
+ yy_flex_free( static_cast<void *>(b->yy_ch_buf) );
- yy_flex_free( (void *) b );
+ yy_flex_free( static_cast<void *>(b) );
}