diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-17 13:09:11 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-18 06:58:44 +0000 |
commit | d96c114171dada05caffd9a50f870809ebd0c450 (patch) | |
tree | 2ef1572fce732c39557b3f2f944aef86f17aa703 /cui/source | |
parent | 70aa5799336de6cbd1d964e2e9a176b44d438db2 (diff) |
clang-tidy modernize-make-shared
Change-Id: I3fa866bfb3093fc876474a9d9db29fe05dc2af3a
Reviewed-on: https://gerrit.libreoffice.org/25056
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/options/optcolor.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx index 101b9e92b606..afcde48d7a89 100644 --- a/cui/source/options/optcolor.cxx +++ b/cui/source/options/optcolor.cxx @@ -548,8 +548,8 @@ void ColorConfigWindow_Impl::CreateEntries() for (unsigned i = 0; i != nGroupCount; ++i) { aModulesInstalled[i] = IsGroupVisible(vGroupInfo[i].eGroup); - vChapters.push_back(std::shared_ptr<Chapter>( - new Chapter(get<FixedText>(vGroupInfo[i].pGroup), aModulesInstalled[i]))); + vChapters.push_back(std::make_shared<Chapter>( + get<FixedText>(vGroupInfo[i].pGroup), aModulesInstalled[i])); } //Here we want to get the amount to add to the position @@ -574,8 +574,8 @@ void ColorConfigWindow_Impl::CreateEntries() vEntries.reserve(ColorConfigEntryCount); for (unsigned i = 0; i < SAL_N_ELEMENTS(vEntryInfo); ++i) { - vEntries.push_back(std::shared_ptr<Entry>(new Entry(*this, i, nCheckBoxLabelOffset, - aModulesInstalled[vEntryInfo[i].eGroup]))); + vEntries.push_back(std::make_shared<Entry>(*this, i, nCheckBoxLabelOffset, + aModulesInstalled[vEntryInfo[i].eGroup])); } // extended entries @@ -586,19 +586,19 @@ void ColorConfigWindow_Impl::CreateEntries() for (unsigned j = 0; j != nExtGroupCount; ++j) { OUString const sComponentName = aExtConfig.GetComponentName(j); - vChapters.push_back(std::shared_ptr<Chapter>(new Chapter( + vChapters.push_back(std::make_shared<Chapter>( m_pGrid, nLineNum, aExtConfig.GetComponentDisplayName(sComponentName) - ))); + )); ++nLineNum; unsigned nColorCount = aExtConfig.GetComponentColorCount(sComponentName); for (unsigned i = 0; i != nColorCount; ++i) { ExtendedColorConfigValue const aColorEntry = aExtConfig.GetComponentColorConfigValue(sComponentName, i); - vEntries.push_back(std::shared_ptr<Entry>( new Entry ( + vEntries.push_back(std::make_shared<Entry>( m_pGrid, nLineNum, aColorEntry, nCheckBoxLabelOffset - ))); + )); ++nLineNum; } } |