From e7441f2e19dbfbc28438badb59d107f0e3068390 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Tue, 24 Jun 2014 19:40:25 +0200 Subject: pagedesc: We have DelPageDesc() that takes OUString as param directly. Change-Id: I616f89716a6e337c647cfb880a4e675cd1b65993 --- sw/source/uibase/app/docstyle.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sw') diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx index fa169f2026a0..1ca2960b8c07 100644 --- a/sw/source/uibase/app/docstyle.cxx +++ b/sw/source/uibase/app/docstyle.cxx @@ -2301,9 +2301,7 @@ void SwDocStyleSheetPool::Remove( SfxStyleSheetBase* pStyle) break; case SFX_STYLE_FAMILY_PAGE : { - sal_uInt16 nPos; - if (rDoc.FindPageDesc(sName, &nPos)) - rDoc.DelPageDesc(nPos); + rDoc.DelPageDesc(sName); } break; -- cgit