diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-07 14:17:38 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-03-10 19:22:01 +0100 |
commit | 6529cd54c29c5800340530a1b8182c341fbeeafb (patch) | |
tree | 2b09ee9429a0759b8104575aa97e1f4aeadd443e /sc/source/core/data/colorscale.cxx | |
parent | xmloff: embedded objects can still use GraphicObject URL (diff) | |
download | core-6529cd54c29c5800340530a1b8182c341fbeeafb.tar.gz core-6529cd54c29c5800340530a1b8182c341fbeeafb.zip |
don't use heap for elements in ScRangeList
no need to store small objects like this out of line.
Also
- add move constructor and move assignment operator
- drop Assign method since it now has the same
signature as push_back
Change-Id: I9a8647d3a11f24166a83d399a358a2bce3b2cb79
Reviewed-on: https://gerrit.libreoffice.org/50899
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/source/core/data/colorscale.cxx')
-rw-r--r-- | sc/source/core/data/colorscale.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx index a07f3ac0f1e6..8826fada3d04 100644 --- a/sc/source/core/data/colorscale.cxx +++ b/sc/source/core/data/colorscale.cxx @@ -393,13 +393,13 @@ std::vector<double>& ScColorFormat::getValues() const const ScRangeList& aRanges = GetRange(); for(size_t i = 0; i < n; ++i) { - const ScRange* pRange = aRanges[i]; - SCTAB nTab = pRange->aStart.Tab(); + const ScRange & rRange = aRanges[i]; + SCTAB nTab = rRange.aStart.Tab(); - SCCOL nColStart = pRange->aStart.Col(); - SCROW nRowStart = pRange->aStart.Row(); - SCCOL nColEnd = pRange->aEnd.Col(); - SCROW nRowEnd = pRange->aEnd.Row(); + SCCOL nColStart = rRange.aStart.Col(); + SCROW nRowStart = rRange.aStart.Row(); + SCCOL nColEnd = rRange.aEnd.Col(); + SCROW nRowEnd = rRange.aEnd.Row(); if(nRowEnd == MAXROW) { |