summaryrefslogtreecommitdiff
path: root/stoc/source/uriproc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-27 09:03:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-30 13:21:13 +0100
commitdb378d64a9ca8675066fda31f3bd77dc37c52398 (patch)
treedc6c2c85b4996cff913c9f590eda19712bf9e309 /stoc/source/uriproc
parent9ee60319c675087486907707c8a2b18b5c9dc9fc (diff)
loplugin:constmethod in vcl and stoc
Change-Id: I7c02eecc16ca7cf89d9f7021116b0226885dbf06 Reviewed-on: https://gerrit.libreoffice.org/44044 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'stoc/source/uriproc')
-rw-r--r--stoc/source/uriproc/UriReference.cxx2
-rw-r--r--stoc/source/uriproc/UriReference.hxx4
-rw-r--r--stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/stoc/source/uriproc/UriReference.cxx b/stoc/source/uriproc/UriReference.cxx
index 2baa1f3b9b20..18ada1d3cf0b 100644
--- a/stoc/source/uriproc/UriReference.cxx
+++ b/stoc/source/uriproc/UriReference.cxx
@@ -67,7 +67,7 @@ OUString UriReference::getUriReference()
return buf.makeStringAndClear();
}
-bool UriReference::isAbsolute() {
+bool UriReference::isAbsolute() const {
return !m_scheme.isEmpty();
}
diff --git a/stoc/source/uriproc/UriReference.hxx b/stoc/source/uriproc/UriReference.hxx
index 05fdc37f6e09..b117b5710955 100644
--- a/stoc/source/uriproc/UriReference.hxx
+++ b/stoc/source/uriproc/UriReference.hxx
@@ -41,10 +41,10 @@ public:
OUString getUriReference();
/// @throws css::uno::RuntimeException
- bool isAbsolute();
+ bool isAbsolute() const;
/// @throws css::uno::RuntimeException
- const OUString& getScheme() { return m_scheme;}
+ const OUString& getScheme() const { return m_scheme;}
/// @throws css::uno::RuntimeException
OUString getSchemeSpecificPart();
diff --git a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
index 6df3cd3e33ca..f7f13c6eb046 100644
--- a/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
+++ b/stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTscript.cxx
@@ -265,7 +265,7 @@ public:
private:
virtual ~UrlReference() override {}
- sal_Int32 findParameter(OUString const & key);
+ sal_Int32 findParameter(OUString const & key) const;
stoc::uriproc::UriReference m_base;
};
@@ -335,7 +335,7 @@ void UrlReference::setParameter(OUString const & key, OUString const & value)
m_base.m_path = newPath.makeStringAndClear();
}
-sal_Int32 UrlReference::findParameter(OUString const & key) {
+sal_Int32 UrlReference::findParameter(OUString const & key) const {
sal_Int32 i = 0;
parsePart(m_base.m_path, true, &i); // skip name
for (;;) {