summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/saveastemplatedlg.cxx7
-rw-r--r--sfx2/source/doc/templatedlg.cxx14
2 files changed, 6 insertions, 15 deletions
diff --git a/sfx2/source/doc/saveastemplatedlg.cxx b/sfx2/source/doc/saveastemplatedlg.cxx
index 5a6a12277f8d..b801462e877a 100644
--- a/sfx2/source/doc/saveastemplatedlg.cxx
+++ b/sfx2/source/doc/saveastemplatedlg.cxx
@@ -113,11 +113,8 @@ void SfxSaveAsTemplateDialog::initialize()
void SfxSaveAsTemplateDialog::SetCategoryLBEntries(const std::vector<OUString>& rFolderNames)
{
- if (!rFolderNames.empty())
- {
- for (size_t i = 0, n = rFolderNames.size(); i < n; ++i)
- m_xLBCategory->insert_text(i+1, rFolderNames[i]);
- }
+ for (size_t i = 0, n = rFolderNames.size(); i < n; ++i)
+ m_xLBCategory->insert_text(i+1, rFolderNames[i]);
m_xLBCategory->select(0);
}
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);
}