[Libreoffice-commits] .: sc/source
Stephan Bergmann
sbergmann at kemper.freedesktop.org
Wed Feb 22 11:52:25 PST 2012
sc/source/core/data/dpobject.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit f21132a7cbc437b1bfe6440962042f2d5492a8af
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Feb 22 20:51:53 2012 +0100
-Werror=unused-but-set-variable
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 71db065..8f85bcf 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&)
{
More information about the Libreoffice-commits
mailing list