summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-14 13:19:22 +0200
committerCaolán McNamara <caolanm@redhat.com>2018-06-14 21:57:20 +0200
commitc37077578deffb79405330967191185967e90b98 (patch)
tree9cd983a39a251e22ba63b789c95b07801ceb0238 /xmloff
parent509c706aa07440a573f0e0c44499b82cde068ad2 (diff)
loplugin:unusedfields
Change-Id: I7d9966d11f8272034523d9804ecf76e119552780 Reviewed-on: https://gerrit.libreoffice.org/55796 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/ximpstyl.cxx13
-rw-r--r--xmloff/source/draw/ximpstyl.hxx1
-rw-r--r--xmloff/source/text/XMLTextMasterPageContext.cxx2
3 files changed, 1 insertions, 15 deletions
diff --git a/xmloff/source/draw/ximpstyl.cxx b/xmloff/source/draw/ximpstyl.cxx
index fb6d581709f8..17173a91e79b 100644
--- a/xmloff/source/draw/ximpstyl.cxx
+++ b/xmloff/source/draw/ximpstyl.cxx
@@ -424,19 +424,6 @@ SdXMLPresentationPageLayoutContext::SdXMLPresentationPageLayoutContext(
{
// set family to something special at SvXMLStyleContext
// for differences in search-methods
-
- sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
- for( sal_Int16 i=0; i < nAttrCount; i++ )
- {
- const OUString& rAttrName = xAttrList->getNameByIndex( i );
- OUString aLocalName;
- sal_uInt16 nPrefix = GetImport().GetNamespaceMap().GetKeyByAttrName( rAttrName, &aLocalName );
-
- if(nPrefix == XML_NAMESPACE_STYLE && IsXMLToken( aLocalName, XML_NAME ) )
- {
- msName = xAttrList->getValueByIndex( i );
- }
- }
}
SvXMLImportContextRef SdXMLPresentationPageLayoutContext::CreateChildContext(
diff --git a/xmloff/source/draw/ximpstyl.hxx b/xmloff/source/draw/ximpstyl.hxx
index 71237cbd41da..a2b4d363673b 100644
--- a/xmloff/source/draw/ximpstyl.hxx
+++ b/xmloff/source/draw/ximpstyl.hxx
@@ -141,7 +141,6 @@ public:
class SdXMLPresentationPageLayoutContext: public SvXMLStyleContext
{
- OUString msName;
std::vector< rtl::Reference< SdXMLPresentationPlaceholderContext > >
maList;
sal_uInt16 mnTypeId;
diff --git a/xmloff/source/text/XMLTextMasterPageContext.cxx b/xmloff/source/text/XMLTextMasterPageContext.cxx
index 7ade7edd7a38..f679c7d2d273 100644
--- a/xmloff/source/text/XMLTextMasterPageContext.cxx
+++ b/xmloff/source/text/XMLTextMasterPageContext.cxx
@@ -64,7 +64,6 @@ XMLTextMasterPageContext::XMLTextMasterPageContext( SvXMLImport& rImport,
const Reference< XAttributeList > & xAttrList,
bool bOverwrite )
: SvXMLStyleContext( rImport, nPrfx, rLName, xAttrList, XML_STYLE_FAMILY_MASTER_PAGE )
-, sIsPhysical( "IsPhysical" )
, sFollowStyle( "FollowStyle" )
, bInsertHeader( false )
, bInsertFooter( false )
@@ -141,6 +140,7 @@ XMLTextMasterPageContext::XMLTextMasterPageContext( SvXMLImport& rImport,
Reference < XPropertySet > xPropSet( xStyle, UNO_QUERY );
Reference< XPropertySetInfo > xPropSetInfo =
xPropSet->getPropertySetInfo();
+ OUString sIsPhysical( "IsPhysical" );
if( !bNew && xPropSetInfo->hasPropertyByName( sIsPhysical ) )
{
aAny = xPropSet->getPropertyValue( sIsPhysical );