summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-06-24 19:40:25 +0200
committerJan Holesovsky <kendy@collabora.com>2014-06-25 20:03:20 +0200
commite7441f2e19dbfbc28438badb59d107f0e3068390 (patch)
treeebee1dabf9cc07da6f83cfad5fa2239f8eeca846
parentc1be76ec98cb465e07df961843134147100beaa9 (diff)
pagedesc: We have DelPageDesc() that takes OUString as param directly.
Change-Id: I616f89716a6e337c647cfb880a4e675cd1b65993
-rw-r--r--sw/source/uibase/app/docstyle.cxx4
1 files changed, 1 insertions, 3 deletions
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;