summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-09-08 22:11:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-09-09 08:25:30 +0200
commitf2517e82904b92989ed7e38a070c18234f460b33 (patch)
tree2b9bb63f3865670ad250f9fd706a577d1696d88f /xmloff
parent1159f58831c69680e9f10767d5358e13b66579dd (diff)
improve loplugin:unusedvarsglobal
to find any global variable, was checking the wrong property of VarDecl Change-Id: I454b4e0c1701bb0771768a1ee10cd738c4ab0726 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102278 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/XMLSymbolImageContext.cxx9
-rw-r--r--xmloff/source/draw/sdpropls.hxx1
-rw-r--r--xmloff/source/style/DashStyle.cxx13
-rw-r--r--xmloff/source/style/XMLBackgroundImageContext.cxx2
-rw-r--r--xmloff/source/style/xmlstyle.cxx20
-rw-r--r--xmloff/source/style/xmltabi.cxx2
-rw-r--r--xmloff/source/text/txtdropi.cxx2
-rw-r--r--xmloff/source/text/txtimp.cxx14
8 files changed, 0 insertions, 63 deletions
diff --git a/xmloff/source/chart/XMLSymbolImageContext.cxx b/xmloff/source/chart/XMLSymbolImageContext.cxx
index 50104efc8c04..9475abaaf947 100644
--- a/xmloff/source/chart/XMLSymbolImageContext.cxx
+++ b/xmloff/source/chart/XMLSymbolImageContext.cxx
@@ -43,15 +43,6 @@ enum SvXMLTokenMapAttrs
}
-const SvXMLTokenMapEntry aSymbolImageAttrTokenMap[] =
-{
- { XML_NAMESPACE_XLINK, ::xmloff::token::XML_HREF, XML_TOK_SYMBOL_IMAGE_HREF },
- { XML_NAMESPACE_XLINK, ::xmloff::token::XML_TYPE, XML_TOK_SYMBOL_IMAGE_TYPE },
- { XML_NAMESPACE_XLINK, ::xmloff::token::XML_ACTUATE, XML_TOK_SYMBOL_IMAGE_ACTUATE },
- { XML_NAMESPACE_XLINK, ::xmloff::token::XML_SHOW, XML_TOK_SYMBOL_IMAGE_SHOW },
- XML_TOKEN_MAP_END
-};
-
XMLSymbolImageContext::XMLSymbolImageContext(
SvXMLImport& rImport, sal_Int32 nElement,
const XMLPropertyState& rProp,
diff --git a/xmloff/source/draw/sdpropls.hxx b/xmloff/source/draw/sdpropls.hxx
index 893ab3d5df8e..0b47d5e6743f 100644
--- a/xmloff/source/draw/sdpropls.hxx
+++ b/xmloff/source/draw/sdpropls.hxx
@@ -37,7 +37,6 @@ extern const XMLPropertyMapEntry aXMLSDProperties[];
// entry list for presentation page properties
extern const XMLPropertyMapEntry aXMLSDPresPageProps[];
-extern const XMLPropertyMapEntry aXMLSDPresPageProps_onlyHeadersFooter[];
// enum maps for attributes
diff --git a/xmloff/source/style/DashStyle.cxx b/xmloff/source/style/DashStyle.cxx
index 3c83c23d1b89..59bcc14d2b6b 100644
--- a/xmloff/source/style/DashStyle.cxx
+++ b/xmloff/source/style/DashStyle.cxx
@@ -55,19 +55,6 @@ enum SvXMLTokenMapAttrs
}
-const SvXMLTokenMapEntry aDashStyleAttrTokenMap[] =
-{
- { XML_NAMESPACE_DRAW, XML_NAME, XML_TOK_DASH_NAME },
- { XML_NAMESPACE_DRAW, XML_DISPLAY_NAME, XML_TOK_DASH_DISPLAY_NAME },
- { XML_NAMESPACE_DRAW, XML_STYLE, XML_TOK_DASH_STYLE },
- { XML_NAMESPACE_DRAW, XML_DOTS1, XML_TOK_DASH_DOTS1 },
- { XML_NAMESPACE_DRAW, XML_DOTS1_LENGTH, XML_TOK_DASH_DOTS1LEN },
- { XML_NAMESPACE_DRAW, XML_DOTS2, XML_TOK_DASH_DOTS2 },
- { XML_NAMESPACE_DRAW, XML_DOTS2_LENGTH, XML_TOK_DASH_DOTS2LEN },
- { XML_NAMESPACE_DRAW, XML_DISTANCE, XML_TOK_DASH_DISTANCE },
- XML_TOKEN_MAP_END
-};
-
SvXMLEnumMapEntry<drawing::DashStyle> const pXML_DashStyle_Enum[] =
{
{ XML_RECT, drawing::DashStyle_RECT },
diff --git a/xmloff/source/style/XMLBackgroundImageContext.cxx b/xmloff/source/style/XMLBackgroundImageContext.cxx
index 60e61df32c5f..8d546a2b7135 100644
--- a/xmloff/source/style/XMLBackgroundImageContext.cxx
+++ b/xmloff/source/style/XMLBackgroundImageContext.cxx
@@ -171,8 +171,6 @@ static void lcl_xmlbic_MergeVertPos( GraphicLocation& ePos,
void XMLBackgroundImageContext::ProcessAttrs(
const Reference< xml::sax::XFastAttributeList >& xAttrList )
{
- static const SvXMLTokenMap aTokenMap( aBGImgAttributesAttrTokenMap );
-
ePos = GraphicLocation_NONE;
for (auto &aIter : sax_fastparser::castToFastAttributeList(xAttrList))
diff --git a/xmloff/source/style/xmlstyle.cxx b/xmloff/source/style/xmlstyle.cxx
index a861996b99b6..67909f15fb96 100644
--- a/xmloff/source/style/xmlstyle.cxx
+++ b/xmloff/source/style/xmlstyle.cxx
@@ -59,26 +59,6 @@ using namespace ::com::sun::star::container;
using namespace ::com::sun::star::style;
using namespace ::xmloff::token;
-const SvXMLTokenMapEntry aStyleStylesElemTokenMap[] =
-{
- { XML_NAMESPACE_STYLE, XML_STYLE, XML_TOK_STYLE_STYLE },
- { XML_NAMESPACE_STYLE, XML_PAGE_LAYOUT, XML_TOK_STYLE_PAGE_MASTER },
- { XML_NAMESPACE_TEXT, XML_LIST_STYLE, XML_TOK_TEXT_LIST_STYLE },
- { XML_NAMESPACE_TEXT, XML_OUTLINE_STYLE, XML_TOK_TEXT_OUTLINE },
- { XML_NAMESPACE_STYLE, XML_DEFAULT_STYLE, XML_TOK_STYLE_DEFAULT_STYLE },
- { XML_NAMESPACE_DRAW, XML_GRADIENT, XML_TOK_STYLES_GRADIENTSTYLES },
- { XML_NAMESPACE_DRAW, XML_HATCH, XML_TOK_STYLES_HATCHSTYLES },
- { XML_NAMESPACE_DRAW, XML_FILL_IMAGE, XML_TOK_STYLES_BITMAPSTYLES },
- { XML_NAMESPACE_DRAW, XML_OPACITY, XML_TOK_STYLES_TRANSGRADIENTSTYLES },
- { XML_NAMESPACE_DRAW, XML_MARKER, XML_TOK_STYLES_MARKERSTYLES },
- { XML_NAMESPACE_DRAW, XML_STROKE_DASH, XML_TOK_STYLES_DASHSTYLES },
- { XML_NAMESPACE_TEXT, XML_NOTES_CONFIGURATION, XML_TOK_TEXT_NOTE_CONFIG },
- { XML_NAMESPACE_TEXT, XML_BIBLIOGRAPHY_CONFIGURATION, XML_TOK_TEXT_BIBLIOGRAPHY_CONFIG },
- { XML_NAMESPACE_TEXT, XML_LINENUMBERING_CONFIGURATION,XML_TOK_TEXT_LINENUMBERING_CONFIG },
- { XML_NAMESPACE_STYLE, XML_DEFAULT_PAGE_LAYOUT, XML_TOK_STYLE_DEFAULT_PAGE_LAYOUT },
- XML_TOKEN_MAP_END
-};
-
const OUStringLiteral gsParaStyleServiceName( u"com.sun.star.style.ParagraphStyle" );
const OUStringLiteral gsTextStyleServiceName( u"com.sun.star.style.CharacterStyle" );
diff --git a/xmloff/source/style/xmltabi.cxx b/xmloff/source/style/xmltabi.cxx
index 20b71a3fd494..a841402fed03 100644
--- a/xmloff/source/style/xmltabi.cxx
+++ b/xmloff/source/style/xmltabi.cxx
@@ -81,8 +81,6 @@ SvxXMLTabStopContext_Impl::SvxXMLTabStopContext_Impl(
aTabStop.FillChar = ' ';
sal_Unicode cTextFillChar = 0;
- static const SvXMLTokenMap aTokenMap( aTabsAttributesAttrTokenMap );
-
for (auto &aIter : sax_fastparser::castToFastAttributeList(xAttrList))
{
const OUString sValue = aIter.toString();
diff --git a/xmloff/source/text/txtdropi.cxx b/xmloff/source/text/txtdropi.cxx
index dc58e2cbbaa7..cf67eb8fcbc4 100644
--- a/xmloff/source/text/txtdropi.cxx
+++ b/xmloff/source/text/txtdropi.cxx
@@ -62,8 +62,6 @@ const SvXMLTokenMapEntry aDropAttrTokenMap[] =
void XMLTextDropCapImportContext::ProcessAttrs(
const Reference< xml::sax::XFastAttributeList >& xAttrList )
{
- static const SvXMLTokenMap aTokenMap( aDropAttrTokenMap );
-
DropCapFormat aFormat;
bool bWholeWord = false;
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx
index 7ccd96e06930..73e6b61d853d 100644
--- a/xmloff/source/text/txtimp.cxx
+++ b/xmloff/source/text/txtimp.cxx
@@ -411,20 +411,6 @@ const SvXMLTokenMapEntry aTextHyperlinkAttrTokenMap[] =
XML_TOKEN_MAP_END
};
-const SvXMLTokenMapEntry aTextMasterPageElemTokenMap[] =
-{
- { XML_NAMESPACE_STYLE, XML_HEADER, XML_TOK_TEXT_MP_HEADER },
- { XML_NAMESPACE_STYLE, XML_FOOTER, XML_TOK_TEXT_MP_FOOTER },
- { XML_NAMESPACE_STYLE, XML_HEADER_LEFT, XML_TOK_TEXT_MP_HEADER_LEFT },
- { XML_NAMESPACE_STYLE, XML_FOOTER_LEFT, XML_TOK_TEXT_MP_FOOTER_LEFT },
- { XML_NAMESPACE_LO_EXT, XML_HEADER_FIRST, XML_TOK_TEXT_MP_HEADER_FIRST },
- { XML_NAMESPACE_LO_EXT, XML_FOOTER_FIRST, XML_TOK_TEXT_MP_FOOTER_FIRST },
- { XML_NAMESPACE_STYLE, XML_HEADER_FIRST, XML_TOK_TEXT_MP_HEADER_FIRST },
- { XML_NAMESPACE_STYLE, XML_FOOTER_FIRST, XML_TOK_TEXT_MP_FOOTER_FIRST },
-
- XML_TOKEN_MAP_END
-};
-
const SvXMLTokenMapEntry aTextFieldAttrTokenMap[] =
{
{ XML_NAMESPACE_TEXT, XML_FIXED, XML_TOK_TEXTFIELD_FIXED },