diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-02-22 20:51:53 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-02-22 20:51:53 +0100 |
commit | f21132a7cbc437b1bfe6440962042f2d5492a8af (patch) | |
tree | 491d9ba741980fa47907a38cb20e035efe7fc7be | |
parent | 13ff8cf43fb003d4d54cecf6b11cc055339bb22b (diff) |
-Werror=unused-but-set-variable
-rw-r--r-- | sc/source/core/data/dpobject.cxx | 4 |
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&) { |