diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-19 14:20:26 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-19 15:28:33 +0200 |
commit | 0f44815ce7b2925189cd603853ce55d8363549dd (patch) | |
tree | 87702a1d0f50a8b550ee1b4b9b84ddef60b46ee7 /stoc | |
parent | 9239b11cee9f02cedcb0c240637e58cc8b795086 (diff) |
loplugin:constmethods
Change-Id: I786096b989daa6004a6527aafbe825b6f0a22d90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120710
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/uriproc/UriReference.cxx | 14 | ||||
-rw-r--r-- | stoc/source/uriproc/UriReference.hxx | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/stoc/source/uriproc/UriReference.cxx b/stoc/source/uriproc/UriReference.cxx index de39330579e2..a47198ac2241 100644 --- a/stoc/source/uriproc/UriReference.cxx +++ b/stoc/source/uriproc/UriReference.cxx @@ -69,26 +69,26 @@ bool UriReference::isAbsolute() const { } -OUString UriReference::getSchemeSpecificPart() +OUString UriReference::getSchemeSpecificPart() const { OUStringBuffer buf; appendSchemeSpecificPart(buf); return buf.makeStringAndClear(); } -bool UriReference::isHierarchical() { +bool UriReference::isHierarchical() const { return m_scheme.isEmpty() || m_hasAuthority || m_path.startsWith("/"); } -bool UriReference::hasAuthority() { +bool UriReference::hasAuthority() const { return m_hasAuthority; } -const OUString& UriReference::getAuthority() { +const OUString& UriReference::getAuthority() const { return m_authority; } -const OUString& UriReference::getPath() { +const OUString& UriReference::getPath() const { return m_path; } @@ -131,11 +131,11 @@ OUString UriReference::getPathSegment(sal_Int32 index) return OUString(); } -bool UriReference::hasQuery() { +bool UriReference::hasQuery() const { return m_hasQuery; } -const OUString& UriReference::getQuery() { +const OUString& UriReference::getQuery() const { return m_query; } diff --git a/stoc/source/uriproc/UriReference.hxx b/stoc/source/uriproc/UriReference.hxx index 9c137e9daa42..715819789e66 100644 --- a/stoc/source/uriproc/UriReference.hxx +++ b/stoc/source/uriproc/UriReference.hxx @@ -46,19 +46,19 @@ public: const OUString& getScheme() const { return m_scheme;} /// @throws css::uno::RuntimeException - OUString getSchemeSpecificPart(); + OUString getSchemeSpecificPart() const; /// @throws css::uno::RuntimeException - bool isHierarchical(); + bool isHierarchical() const; /// @throws css::uno::RuntimeException - bool hasAuthority(); + bool hasAuthority() const; /// @throws css::uno::RuntimeException - const OUString& getAuthority(); + const OUString& getAuthority() const; /// @throws css::uno::RuntimeException - const OUString& getPath(); + const OUString& getPath() const; /// @throws css::uno::RuntimeException bool hasRelativePath(); @@ -70,10 +70,10 @@ public: OUString getPathSegment(sal_Int32 index); /// @throws css::uno::RuntimeException - bool hasQuery(); + bool hasQuery() const; /// @throws css::uno::RuntimeException - const OUString& getQuery(); + const OUString& getQuery() const; /// @throws css::uno::RuntimeException bool hasFragment(); |