summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-03 17:11:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-03 21:28:50 +0200
commite3517eefed2d4767648cb52d4a9863908cadc3d8 (patch)
tree99178f66fbedd74e7c7daa7f9bcb0e2cb2ac09b2 /sfx2
parent454a3c945fdc02d706b0a5ad49ca13e0443fa8e5 (diff)
Related: tdf#130108 expand single arg SfxStyleSheetBasePool::Find uses
remove it and expand its uses to explicitly show what it does Change-Id: I2d4511c58b51003c327a2c70e3cc4f60751f520d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93352 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 e86f63f9ef53..133c338d1176 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))
+ while (rPool.Find(aNoName, rPool.GetSearchFamily(), rPool.GetSearchMask()))
{
++i;
aNoName = aNo + OUString::number(i);