diff options
Diffstat (limited to 'sfx2/source/doc/templatedlg.cxx')
-rw-r--r-- | sfx2/source/doc/templatedlg.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index c78cf5b002ac..717eabb934c2 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -344,11 +344,8 @@ void SfxTemplateManagerDlg::fillFolderComboBox() { std::vector<OUString> aFolderNames = mpLocalView->getFolderNames(); - if (!aFolderNames.empty()) - { - for (size_t i = 0, n = aFolderNames.size(); i < n; ++i) - mpCBFolder->InsertEntry(aFolderNames[i], i+1); - } + for (size_t i = 0, n = aFolderNames.size(); i < n; ++i) + mpCBFolder->InsertEntry(aFolderNames[i], i+1); mpCBFolder->SelectEntryPos(0); mpActionMenu->HideItem(MNI_ACTION_RENAME_FOLDER); } @@ -1377,11 +1374,8 @@ IMPL_LINK_NOARG(SfxTemplateCategoryDialog, SelectCategoryHdl, weld::TreeView&, v void SfxTemplateCategoryDialog::SetCategoryLBEntries(std::vector<OUString> aFolderNames) { - if (!aFolderNames.empty()) - { - for (size_t i = 0, n = aFolderNames.size(); i < n; ++i) - mxLBCategory->append_text(aFolderNames[i]); - } + for (size_t i = 0, n = aFolderNames.size(); i < n; ++i) + mxLBCategory->append_text(aFolderNames[i]); mxLBCategory->select(0); } |