From 1ebeacb20ad0165e399629fcfd7795ad0da3edf8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Mar 2020 08:34:37 +0100 Subject: Extend loplugin:cstylecast to certain function-style casts ...that are equivalent to const_cast or reinterpret_cast, and should arguably better be written that way for clarity. Drawing inspiration from "Replace `T(x)` with `reinterpret_cast(x)` everywhere it means reinterpret_cast. No functional change". Change-Id: I27b8f70d324d32ecba658db4d1c2db03e10d5d3e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91086 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sdext/source/pdfimport/tree/style.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sdext') diff --git a/sdext/source/pdfimport/tree/style.hxx b/sdext/source/pdfimport/tree/style.hxx index 8aafe555f728..ee7cafeabc93 100644 --- a/sdext/source/pdfimport/tree/style.hxx +++ b/sdext/source/pdfimport/tree/style.hxx @@ -71,7 +71,7 @@ namespace pdfi return sum ^ size_t(rEntry.first.hashCode()) ^ size_t(rEntry.second.hashCode()); }); nRet ^= size_t(Contents.hashCode()); - nRet ^= size_t(ContainedElement); + nRet ^= reinterpret_cast(ContainedElement); for( size_t n = 0; n < SubStyles.size(); ++n ) nRet ^= size_t(SubStyles[n]); return nRet; -- cgit