summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-02-22 20:51:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-02-22 20:51:53 +0100
commitf21132a7cbc437b1bfe6440962042f2d5492a8af (patch)
tree491d9ba741980fa47907a38cb20e035efe7fc7be /sc
parentNo sense making a copy when you don't modify it. (diff)
downloadcore-f21132a7cbc437b1bfe6440962042f2d5492a8af.tar.gz
core-f21132a7cbc437b1bfe6440962042f2d5492a8af.zip
-Werror=unused-but-set-variable
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/dpobject.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 71db065aa2b9..8f85bcf0d592 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -1993,7 +1993,6 @@ bool ScDPObject::FillLabelData(ScPivotParam& rParam)
if (!xDimName.is() || !xDimProp.is())
continue;
- bool bDuplicated = false;
bool bData = ScUnoHelpFunctions::GetBoolProperty( xDimProp,
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(SC_UNO_DP_ISDATALAYOUT)) );
//! error checking -- is "IsDataLayoutDimension" property required??
@@ -2004,8 +2003,7 @@ bool ScDPObject::FillLabelData(ScPivotParam& rParam)
aFieldName = xDimName->getName();
uno::Any aOrigAny = xDimProp->getPropertyValue(
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(SC_UNO_DP_ORIGINAL_POS)));
- if (aOrigAny >>= nOrigPos)
- bDuplicated = nOrigPos >= 0;
+ aOrigAny >>= nOrigPos;
}
catch(uno::Exception&)
{