From 7282b25f226bf73ed88dbd3d0a6f265f1626d190 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 15 Sep 2017 18:45:17 +0200 Subject: Fix loplugin:redundantcast's VisitCXXFunctionalCastExpr ...when t1 is ElaboratedType sugar (which isn't only used when the type is written with an elaborated type keyword, but also when it is written with a qualified name). (I originally wrote testArithmeticTypedefs to track down a different issue, which turned out to be a non-issue, with this fix as fall-out. So that test doesn't quite match the theme of this commit, but is a worthwhile addition nonetheless.) Change-Id: Ic447da4399853d7d045e3e2e7ade8ddf52d89749 --- sc/source/ui/unoobj/PivotTableDataProvider.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/source') diff --git a/sc/source/ui/unoobj/PivotTableDataProvider.cxx b/sc/source/ui/unoobj/PivotTableDataProvider.cxx index 7d5a3bfa90c7..581e5a9c9b25 100644 --- a/sc/source/ui/unoobj/PivotTableDataProvider.cxx +++ b/sc/source/ui/unoobj/PivotTableDataProvider.cxx @@ -358,9 +358,9 @@ void PivotTableDataProvider::collectPivotTableData() if (!xDimProp.is() || !xDimSupp.is()) continue; - sheet::DataPilotFieldOrientation eDimOrient = sheet::DataPilotFieldOrientation( + sheet::DataPilotFieldOrientation eDimOrient = ScUnoHelpFunctions::GetEnumProperty(xDimProp, SC_UNO_DP_ORIENTATION, - sheet::DataPilotFieldOrientation_HIDDEN)); + sheet::DataPilotFieldOrientation_HIDDEN); if (eDimOrient == sheet::DataPilotFieldOrientation_HIDDEN) continue; -- cgit