diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-08-15 15:52:55 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-08-15 16:48:57 +0200 |
commit | 0606ab6a73d5d9e3fd9f7b20f77a2532f2478194 (patch) | |
tree | bb2f074abeb4a34136762f0297a2ce6293488aed /sw/source/core/unocore/unodraw.cxx | |
parent | 615d3e319c027b6ef656ff2358c5d2c3519d5440 (diff) |
SwTextBoxHelper::findTextBoxes: return a set of const pointers
Change-Id: I8e3ea996959bad72e6d15dc9c980ea9d18d31fb3
Diffstat (limited to 'sw/source/core/unocore/unodraw.cxx')
-rw-r--r-- | sw/source/core/unocore/unodraw.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx index 9640704ebf12..df20923ea4ad 100644 --- a/sw/source/core/unocore/unodraw.cxx +++ b/sw/source/core/unocore/unodraw.cxx @@ -524,7 +524,7 @@ sal_Int32 SwXDrawPage::getCount(void) throw( uno::RuntimeException, std::excepti { ((SwXDrawPage*)this)->GetSvxPage(); - std::set<SwFrmFmt*> aTextBoxes = SwTextBoxHelper::findTextBoxes(pDoc); + std::set<const SwFrmFmt*> aTextBoxes = SwTextBoxHelper::findTextBoxes(pDoc); if (aTextBoxes.empty()) return pDrawPage->getCount(); @@ -544,7 +544,7 @@ uno::Any SwXDrawPage::getByIndex(sal_Int32 nIndex) throw lang::IndexOutOfBoundsException(); ((SwXDrawPage*)this)->GetSvxPage(); - std::set<SwFrmFmt*> aTextBoxes = SwTextBoxHelper::findTextBoxes(pDoc); + std::set<const SwFrmFmt*> aTextBoxes = SwTextBoxHelper::findTextBoxes(pDoc); if (aTextBoxes.empty()) return pDrawPage->getByIndex( nIndex ); else |