diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-08-10 22:20:30 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-08-12 15:23:53 +0200 |
commit | 4721cbb1bb118d33ac9fcf93dda8c083b364003d (patch) | |
tree | f958d6b46d40fd573483139512b4c31dbd6e153b /sc/source/core/data/dpobject.cxx | |
parent | a684613daf9ed5670c5f80267cc1bea0b878b1f6 (diff) |
Mark Sequence const in sc
It ensures that const begin()/end() methods will be called,
removing any overhead.
fca94779872b8ba0b0583d0b7068f1a46beb88c5 follow-up.
Change-Id: Id680744abb1b3887f25c9bfa033106de18a9c2d0
Reviewed-on: https://gerrit.libreoffice.org/77250
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/source/core/data/dpobject.cxx')
-rw-r--r-- | sc/source/core/data/dpobject.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx index 16e8e794d019..4c7d02baa957 100644 --- a/sc/source/core/data/dpobject.cxx +++ b/sc/source/core/data/dpobject.cxx @@ -1174,7 +1174,7 @@ bool ScDPObject::IsDimNameInUse(const OUString& rName) const return false; Reference<container::XNameAccess> xDims = xSource->getDimensions(); - Sequence<OUString> aDimNames = xDims->getElementNames(); + const Sequence<OUString> aDimNames = xDims->getElementNames(); for (const OUString& rDimName : aDimNames) { if (rDimName.equalsIgnoreAsciiCase(rName)) |