Skip to content

Commit

Permalink
main: Fix C-style pointer casting (#322)
Browse files Browse the repository at this point in the history
C-styleのポインターキャストを使っているとcppcheckに指摘されたため
reinterpret_castを使って修正します。

```
src/main.cpp:197:26: style: C-style pointer casting [cstyleCast]
    XSMPDATA *xsmpdata = ( XSMPDATA* ) client_data;
                         ^
```
  • Loading branch information
ma8ma committed Jun 6, 2020
1 parent bb0835a commit 739883f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void ice_watch_proc( IceConn ice_connect,
Bool opening,
IcePointer *watch_data )
{
XSMPDATA *xsmpdata = ( XSMPDATA* ) client_data;
XSMPDATA *xsmpdata = reinterpret_cast<XSMPDATA*>( client_data );
xsmpdata->ice_connect = ice_connect;

if( xsmpdata->id_process_message ){
Expand Down

0 comments on commit 739883f

Please sign in to comment.