summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-09-15 18:45:17 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-09-15 18:50:45 +0200
commit7282b25f226bf73ed88dbd3d0a6f265f1626d190 (patch)
treed8484acfe96b5c8d74d0302e74c04c79e9dbb350 /sc
parentebc7beb6626a330631cf5e12f0cd8b85f5da1bfa (diff)
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
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/PivotTableDataProvider.cxx4
1 files changed, 2 insertions, 2 deletions
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;