diff options
author | Noel Grandin <noel@peralex.com> | 2012-06-21 13:40:06 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-25 20:13:14 +0200 |
commit | 7ce8873e463e609759e24bfdbf15e201e8b12d8d (patch) | |
tree | 8a715c9a5cebf99e829cc3260f42ba256938a990 /sw/source/core/doc/docdesc.cxx | |
parent | 0a79ba5db6e763639974d59c43e2cbbd3872e41d (diff) |
Cleanup SwDoc::GetPageDesc(sal_uInt16) const-ness issues
The code was casting away the const-ness everywhere.
Rather just declare 2 accessor methods, then the code becomes
much cleaner.
Change-Id: Id6b240536485cfebe044bcc427ba24843cf4c051
Diffstat (limited to 'sw/source/core/doc/docdesc.cxx')
-rw-r--r-- | sw/source/core/doc/docdesc.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/docdesc.cxx b/sw/source/core/doc/docdesc.cxx index 4d26645327d2..5f97836225c4 100644 --- a/sw/source/core/doc/docdesc.cxx +++ b/sw/source/core/doc/docdesc.cxx @@ -831,7 +831,7 @@ void SwDoc::CheckDefaultPageFmt() { for ( sal_uInt16 i = 0; i < GetPageDescCnt(); ++i ) { - SwPageDesc& rDesc = _GetPageDesc( i ); + SwPageDesc& rDesc = GetPageDesc( i ); SwFrmFmt& rMaster = rDesc.GetMaster(); SwFrmFmt& rLeft = rDesc.GetLeft(); @@ -863,7 +863,7 @@ void SwDoc::SetDefaultPageMode(bool bSquaredPageMode) for ( sal_uInt16 i = 0; i < GetPageDescCnt(); ++i ) { - SwPageDesc& rDesc = _GetPageDesc( i ); + SwPageDesc& rDesc = GetPageDesc( i ); SwFrmFmt& rMaster = rDesc.GetMaster(); SwFrmFmt& rLeft = rDesc.GetLeft(); |