summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-03 19:46:13 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-03 22:44:21 +0200
commit00db5933ded1884b2ac453552badae20fa943478 (patch)
treeebb6bea2aa8f257e1de46f7f0f89bfe07ba44899 /sfx2
parenta9102a1c637272d88ef542d37b871bd9278cacb7 (diff)
use SfxStyleSearchBits::All for GenerateUnusedName
use in SfxManageStyleSheetPage is definitely with SfxStyleSearchBits::All applied. It seems almost certain that use in SwDocShell::ExecStyleSheet would prefer that Change-Id: I245c3f02bcce87f124bf0e507b59738a6dff34d7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93354 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/styledlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/dialog/styledlg.cxx b/sfx2/source/dialog/styledlg.cxx
index 3f694ec66573..2614083f8f75 100644
--- a/sfx2/source/dialog/styledlg.cxx
+++ b/sfx2/source/dialog/styledlg.cxx
@@ -113,7 +113,7 @@ OUString SfxStyleDialogController::GenerateUnusedName(SfxStyleSheetBasePool &rPo
OUString aNo(SfxResId(STR_NONAME));
sal_uInt16 i = 1;
OUString aNoName = aNo + OUString::number(i);
- while (rPool.Find(aNoName, eFam, rPool.GetSearchMask()))
+ while (rPool.Find(aNoName, eFam))
{
++i;
aNoName = aNo + OUString::number(i);