Skip to content

Commit 9bc9d34

Browse files
committed
revert to reinterpret_cast
1 parent 5a4172a commit 9bc9d34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

standalone/api.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void modsecSetLogHook(void *obj, void (*hook)(void *obj, int level, char *str));
8787
static inline void
8888
modsecSetBodyBrigade(request_rec *r, apr_bucket_brigade *b) {
8989
#ifdef __cplusplus
90-
apr_table_setn(r->notes, NOTE_MSR_BRIGADE_REQUEST, dynamic_cast<char *>(b)); //NOSONAR
90+
apr_table_setn(r->notes, NOTE_MSR_BRIGADE_REQUEST, reinterpret_cast<char *>(b)); //NOSONAR
9191
#else
9292
apr_table_setn(r->notes, NOTE_MSR_BRIGADE_REQUEST, (char *)b);
9393
#endif
@@ -106,7 +106,7 @@ static inline apr_bucket_brigade * modsecGetBodyBrigade(const request_rec *r) {
106106
static inline void
107107
modsecSetResponseBrigade(request_rec *r, apr_bucket_brigade *b) {
108108
#ifdef __cplusplus
109-
apr_table_setn(r->notes, NOTE_MSR_BRIGADE_RESPONSE, dynamic_cast<char *>(b)); //NOSONAR
109+
apr_table_setn(r->notes, NOTE_MSR_BRIGADE_RESPONSE, reinterpret_cast<char *>(b)); //NOSONAR
110110
#else
111111
apr_table_setn(r->notes, NOTE_MSR_BRIGADE_RESPONSE, (char *)b);
112112
#endif

0 commit comments

Comments
 (0)