loplugin:unusedfields,can-be-const in xmlreader

Change-Id: I762a749b858063a1c063ee918bb6d33e06328876
Reviewed-on: https://gerrit.libreoffice.org/57852
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2018-07-24 08:32:46 +02:00
parent f08a06052b
commit 0b7fe7b2ce
2 changed files with 8 additions and 8 deletions
+6 -6
View File
@@ -78,8 +78,8 @@ private:
// elements_ and attributes_):
struct NamespaceData {
Span prefix;
int nsId;
Span const prefix;
int const nsId;
NamespaceData():
nsId(-1) {}
@@ -91,9 +91,9 @@ private:
typedef std::vector< NamespaceData > NamespaceList;
struct ElementData {
Span name;
NamespaceList::size_type inheritedNamespaces;
int defaultNamespaceId;
Span const name;
NamespaceList::size_type const inheritedNamespaces;
int const defaultNamespaceId;
ElementData(
Span const & theName,
@@ -168,7 +168,7 @@ private:
SAL_DLLPRIVATE static int toNamespaceId(NamespaceIris::size_type pos);
OUString fileUrl_;
OUString const fileUrl_;
oslFileHandle fileHandle_;
sal_uInt64 fileSize_;
void * fileAddress_;
+2 -2
View File
@@ -458,9 +458,9 @@ char const * XmlReader::handleReference(char const * position, char const * end)
} else {
struct EntityRef {
char const * inBegin;
sal_Int32 inLength;
sal_Int32 const inLength;
char const * outBegin;
sal_Int32 outLength;
sal_Int32 const outLength;
};
static EntityRef const refs[] = {
{ RTL_CONSTASCII_STRINGPARAM("amp;"),