summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/laycache.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/layout/laycache.cxx')
-rw-r--r--sw/source/core/layout/laycache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/laycache.cxx b/sw/source/core/layout/laycache.cxx
index ab8f0e361841..74653f8db268 100644
--- a/sw/source/core/layout/laycache.cxx
+++ b/sw/source/core/layout/laycache.cxx
@@ -667,7 +667,7 @@ bool SwLayHelper::CheckInsertPage()
}
// If the page style is changing, we'll have a first page.
bool bNextPageFirst = pDesc != mrpPage->GetPageDesc();
- ::InsertNewPage( (SwPageDesc&)*pDesc, mrpPage->GetUpper(),
+ ::InsertNewPage( const_cast<SwPageDesc&>(*pDesc), mrpPage->GetUpper(),
bNextPageOdd, bNextPageFirst, bInsertEmpty, false, mrpPage->GetNext() );
if ( bEnd )
{