summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-06-11 15:44:56 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-06-11 18:12:48 +0200
commitb49fce18d0b05a8b5f462ba9bf6c84f0bb107d93 (patch)
tree5467d582e25cba593d89f22835fe0f8f2f697c12 /sc/source/core
parent513b54df70b5b9cde8d6ca2304378949256eea1d (diff)
Simplify vector initializations
Change-Id: Icf8972be204799e9b3b3824ab18d8584911fe1c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117061 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/column3.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 365cba4d8489..73a2ed613548 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -723,9 +723,7 @@ void ScColumn::AttachNewFormulaCells( const sc::CellStoreType::position_type& aP
{
// Merge into one span.
// The original two spans are ordered from top to bottom.
- std::vector<SCROW> aRows(2);
- aRows[0] = std::min( rNewSharedRows[0], nTopRow);
- aRows[1] = std::max( rNewSharedRows[3], nBotRow);
+ std::vector<SCROW> aRows { std::min( rNewSharedRows[0], nTopRow), std::max( rNewSharedRows[3], nBotRow) };
rNewSharedRows.swap( aRows);
}
else