diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-09-21 08:41:28 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-09-21 15:09:26 +0200 |
commit | 70f8bddf87537e5ca28758a1f59bda23c0963501 (patch) | |
tree | 3311218ad652b421fa0ce7f4e521e085dbb77f8c /sw/source/core/inc/frame.hxx | |
parent | c20afb30e724361b76257fec0f3f7b9b90f8d58c (diff) |
Extend loplugin:redundantcast to some suspicious reinterpret_cast
Change-Id: I5534939bfbea67d216a17891722a683c53621d36
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140303
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/source/core/inc/frame.hxx')
-rw-r--r-- | sw/source/core/inc/frame.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx index 7cb9dffc27bc..e5b4c4c9bf5c 100644 --- a/sw/source/core/inc/frame.hxx +++ b/sw/source/core/inc/frame.hxx @@ -195,7 +195,7 @@ public: public: FrameAreaWriteAccess(SwFrameAreaDefinition& rTarget) : SwRect(rTarget.getFrameArea()), mrTarget(rTarget) {} ~FrameAreaWriteAccess(); - void setSwRect(const SwRect& rNew) { *reinterpret_cast< SwRect* >(this) = rNew; } + void setSwRect(const SwRect& rNew) { *static_cast< SwRect* >(this) = rNew; } }; // same helper for FramePrintArea @@ -210,7 +210,7 @@ public: public: FramePrintAreaWriteAccess(SwFrameAreaDefinition& rTarget) : SwRect(rTarget.getFramePrintArea()), mrTarget(rTarget) {} ~FramePrintAreaWriteAccess(); - void setSwRect(const SwRect& rNew) { *reinterpret_cast< SwRect* >(this) = rNew; } + void setSwRect(const SwRect& rNew) { *static_cast< SwRect* >(this) = rNew; } }; // RotateFlyFrame3 - Support for Transformations |