diff --git a/reportdesign/source/ui/report/ReportControllerObserver.cxx b/reportdesign/source/ui/report/ReportControllerObserver.cxx index 0c6f3957a33d..3dd5b0091c3f 100644 --- a/reportdesign/source/ui/report/ReportControllerObserver.cxx +++ b/reportdesign/source/ui/report/ReportControllerObserver.cxx @@ -102,7 +102,7 @@ public: if (nEvent == VCLEVENT_APPLICATION_DATACHANGED ) { - DataChangedEvent* pData = reinterpret_cast(_pEvt->GetData()); + DataChangedEvent* pData = static_cast(_pEvt->GetData()); if ( pData && ((( pData->GetType() == DataChangedEventType::SETTINGS ) || ( pData->GetType() == DataChangedEventType::DISPLAY )) && ( pData->GetFlags() & AllSettingsFlags::STYLE )))