Kaydet (Commit) 0b7fe7b2 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedfields,can-be-const in xmlreader

Change-Id: I762a749b858063a1c063ee918bb6d33e06328876
Reviewed-on: https://gerrit.libreoffice.org/57852
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst f08a0605
......@@ -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_;
......
......@@ -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;"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment