diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-25 17:12:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-26 10:59:42 +0200 |
commit | d9b6f4fd38da9f875b78f6ff365bcb16fb2c8e8b (patch) | |
tree | 7d38b04189cfa4fd4f4f91324fc6c95f360f080c /sax | |
parent | 084f454e8caa2d9e43f7bdea098538bfb87423d8 (diff) |
loplugin:constmethods in unotools
Change-Id: I13df4e184a826682f34a1d9e974b601397ba4a3d
Reviewed-on: https://gerrit.libreoffice.org/43865
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/fastattribs.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx index 2416a3bb42c7..06fe66270b12 100644 --- a/sax/source/tools/fastattribs.cxx +++ b/sax/source/tools/fastattribs.cxx @@ -153,7 +153,7 @@ sal_Int32 FastAttributeList::getOptionalValueToken( ::sal_Int32 Token, ::sal_Int } // performance sensitive shortcuts to avoid allocation ... -bool FastAttributeList::getAsInteger( sal_Int32 nToken, sal_Int32 &rInt) +bool FastAttributeList::getAsInteger( sal_Int32 nToken, sal_Int32 &rInt) const { rInt = 0; for (size_t i = 0; i < maAttributeTokens.size(); ++i) @@ -165,7 +165,7 @@ bool FastAttributeList::getAsInteger( sal_Int32 nToken, sal_Int32 &rInt) return false; } -bool FastAttributeList::getAsDouble( sal_Int32 nToken, double &rDouble) +bool FastAttributeList::getAsDouble( sal_Int32 nToken, double &rDouble) const { rDouble = 0.0; for (size_t i = 0; i < maAttributeTokens.size(); ++i) |