summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/condformatuno.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-06-09 17:28:19 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-06-11 14:54:14 +0200
commitb1fe17f280b24e78e7ee55d4762dc64a98d6f302 (patch)
tree819aecb52d9c92a3cf6b640c52da8cfcf6a077fa /sc/source/ui/unoobj/condformatuno.cxx
parent51178765e8afe33ebbb2016219cff869d88ca07f (diff)
Simplify Sequences initializations (sc)
Change-Id: I0c581b3a900a6b89c0f4e203310d65600545987f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116929 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sc/source/ui/unoobj/condformatuno.cxx')
-rw-r--r--sc/source/ui/unoobj/condformatuno.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/condformatuno.cxx b/sc/source/ui/unoobj/condformatuno.cxx
index e5e65dd7dcbf..573d70a75794 100644
--- a/sc/source/ui/unoobj/condformatuno.cxx
+++ b/sc/source/ui/unoobj/condformatuno.cxx
@@ -1340,9 +1340,11 @@ uno::Any SAL_CALL ScDataBarFormatObj::getPropertyValue( const OUString& aPropert
break;
case DataBarEntries:
{
- uno::Sequence<uno::Reference<sheet::XDataBarEntry> > aEntries(2);
- aEntries[0] = new ScDataBarEntryObj(this, 0);
- aEntries[1] = new ScDataBarEntryObj(this, 1);
+ uno::Sequence<uno::Reference<sheet::XDataBarEntry> > aEntries
+ {
+ new ScDataBarEntryObj(this, 0),
+ new ScDataBarEntryObj(this, 1)
+ };
aAny <<= aEntries;
}
break;