diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-06-11 15:44:56 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-06-11 18:12:48 +0200 |
commit | b49fce18d0b05a8b5f462ba9bf6c84f0bb107d93 (patch) | |
tree | 5467d582e25cba593d89f22835fe0f8f2f697c12 /chart2 | |
parent | 513b54df70b5b9cde8d6ca2304378949256eea1d (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 'chart2')
-rw-r--r-- | chart2/source/tools/InternalData.cxx | 4 | ||||
-rw-r--r-- | chart2/source/tools/InternalDataProvider.cxx | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/chart2/source/tools/InternalData.cxx b/chart2/source/tools/InternalData.cxx index c5f9490f01f7..35c615fe2873 100644 --- a/chart2/source/tools/InternalData.cxx +++ b/chart2/source/tools/InternalData.cxx @@ -56,9 +56,7 @@ struct lcl_NumberedStringGenerator } vector< uno::Any > operator()() { - vector< uno::Any > aRet(1); - aRet[0] <<= m_aStub.replaceAt( m_nStubStartIndex, m_nWildcardLength, OUString::number( ++m_nCounter )); - return aRet; + return { uno::Any(m_aStub.replaceAt( m_nStubStartIndex, m_nWildcardLength, OUString::number( ++m_nCounter ))) }; } private: OUString m_aStub; diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx index 9595cf2375d7..e9beeb6d1d41 100644 --- a/chart2/source/tools/InternalDataProvider.cxx +++ b/chart2/source/tools/InternalDataProvider.cxx @@ -369,9 +369,7 @@ InternalDataProvider::InternalDataProvider( aNewCategories.reserve( nLength ); for( sal_Int32 nN=0; nN<nLength; nN++) { - vector< uno::Any > aVector(1); - aVector[0] <<= aSimplecategories[nN]; - aNewCategories.push_back( aVector ); + aNewCategories.push_back( { uno::Any(aSimplecategories[nN]) } ); } } } |