loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I8a8ba86dd78e30146f7b9dd7071f5641d496a67a
This commit is contained in:
@@ -53,7 +53,7 @@ public:
|
|||||||
void setAttributeListImpl( AttributeListImpl *p )
|
void setAttributeListImpl( AttributeListImpl *p )
|
||||||
{
|
{
|
||||||
pList = p;
|
pList = p;
|
||||||
rList = (XAttributeList *) pList;
|
rList = static_cast<XAttributeList *>(pList);
|
||||||
}
|
}
|
||||||
int parse();
|
int parse();
|
||||||
private:
|
private:
|
||||||
|
@@ -61,9 +61,9 @@ gz_stream *gz_open(HStream & _stream)
|
|||||||
s = static_cast<gz_stream *>(ALLOC(sizeof(gz_stream)));
|
s = static_cast<gz_stream *>(ALLOC(sizeof(gz_stream)));
|
||||||
if (!s)
|
if (!s)
|
||||||
return Z_NULL;
|
return Z_NULL;
|
||||||
s->stream.zalloc = (alloc_func) 0;
|
s->stream.zalloc = nullptr;
|
||||||
s->stream.zfree = (free_func) 0;
|
s->stream.zfree = nullptr;
|
||||||
s->stream.opaque = (voidpf) 0;
|
s->stream.opaque = nullptr;
|
||||||
s->stream.next_in = s->inbuf = Z_NULL;
|
s->stream.next_in = s->inbuf = Z_NULL;
|
||||||
s->stream.next_out = s->outbuf = Z_NULL;
|
s->stream.next_out = s->outbuf = Z_NULL;
|
||||||
s->stream.avail_in = s->stream.avail_out = 0;
|
s->stream.avail_in = s->stream.avail_out = 0;
|
||||||
|
@@ -112,7 +112,7 @@ struct HwpReaderPrivate
|
|||||||
HwpReader::HwpReader()
|
HwpReader::HwpReader()
|
||||||
{
|
{
|
||||||
pList = new AttributeListImpl;
|
pList = new AttributeListImpl;
|
||||||
rList = (XAttributeList *) pList;
|
rList = static_cast<XAttributeList *>(pList);
|
||||||
d = new HwpReaderPrivate;
|
d = new HwpReaderPrivate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -189,7 +189,7 @@ Reference< XInterface > HwpImportFilter_CreateInstance(
|
|||||||
{
|
{
|
||||||
HwpImportFilter *p = new HwpImportFilter( rSMgr );
|
HwpImportFilter *p = new HwpImportFilter( rSMgr );
|
||||||
|
|
||||||
return Reference< XInterface > ( (OWeakObject* )p );
|
return Reference< XInterface > ( static_cast<OWeakObject*>(p) );
|
||||||
}
|
}
|
||||||
|
|
||||||
Sequence< OUString > HwpImportFilter::getSupportedServiceNames_Static() throw ()
|
Sequence< OUString > HwpImportFilter::getSupportedServiceNames_Static() throw ()
|
||||||
|
@@ -203,7 +203,7 @@ static int yy_n_chars; /* number of characters read into yy_ch_buf */
|
|||||||
int yyleng;
|
int yyleng;
|
||||||
|
|
||||||
/* Points to current character in buffer. */
|
/* 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_init = 1; /* whether we need to initialize */
|
||||||
static int yy_start = 0; /* start state number */
|
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 * ));
|
static void yy_flex_free YY_PROTO(( void * ));
|
||||||
|
|
||||||
typedef unsigned char YY_CHAR;
|
typedef unsigned char YY_CHAR;
|
||||||
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
|
FILE *yyin = nullptr, *yyout = nullptr;
|
||||||
typedef int yy_state_type;
|
typedef int yy_state_type;
|
||||||
extern char *yytext;
|
extern char *yytext;
|
||||||
#define yytext_ptr yytext
|
#define yytext_ptr yytext
|
||||||
@@ -1590,7 +1590,7 @@ static int yy_get_next_buffer()
|
|||||||
|
|
||||||
b->yy_ch_buf = static_cast<char *>(
|
b->yy_ch_buf = static_cast<char *>(
|
||||||
/* Include room in for 2 EOB chars. */
|
/* 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 ));
|
b->yy_buf_size + 2 ));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -1811,12 +1811,12 @@ YY_BUFFER_STATE b;
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if ( b == yy_current_buffer )
|
if ( b == yy_current_buffer )
|
||||||
yy_current_buffer = (YY_BUFFER_STATE) 0;
|
yy_current_buffer = nullptr;
|
||||||
|
|
||||||
if ( b->yy_is_our_buffer )
|
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) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user