summaryrefslogtreecommitdiff
path: root/editeng/source/outliner
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2013-03-09 22:02:47 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2013-03-09 22:03:59 +0400
commitc487fa125ed9fb59ba2507d5f0f947d5e425bc61 (patch)
treeabdb3c95f81268c35bc72c209d289c2bef3a9275 /editeng/source/outliner
parent5f606b0a5bcf71e7584403c9582188f1f564c67c (diff)
const-correctness
Change-Id: I15033051cfa4baafde4736abf366ca8c03778b88
Diffstat (limited to 'editeng/source/outliner')
-rw-r--r--editeng/source/outliner/outlin2.cxx2
-rw-r--r--editeng/source/outliner/outliner.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/outliner/outlin2.cxx b/editeng/source/outliner/outlin2.cxx
index 0d3a2daeb3b6..8fea84b80f48 100644
--- a/editeng/source/outliner/outlin2.cxx
+++ b/editeng/source/outliner/outlin2.cxx
@@ -591,7 +591,7 @@ void Outliner::SetGlobalCharStretching( sal_uInt16 nX, sal_uInt16 nY )
pEditEngine->SetGlobalCharStretching( nX, nY );
}
-void Outliner::GetGlobalCharStretching( sal_uInt16& rX, sal_uInt16& rY )
+void Outliner::GetGlobalCharStretching( sal_uInt16& rX, sal_uInt16& rY ) const
{
DBG_CHKTHIS(Outliner,0);
pEditEngine->GetGlobalCharStretching( rX, rY );
diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx
index e81286c8c5fb..259e5d45772e 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -872,7 +872,7 @@ Font Outliner::ImpCalcBulletFont( sal_uInt16 nPara ) const
// Use original scale...
sal_uInt16 nStretchX, nStretchY;
- const_cast<Outliner*>(this)->GetGlobalCharStretching(nStretchX, nStretchY);
+ GetGlobalCharStretching(nStretchX, nStretchY);
sal_uInt16 nScale = pFmt->GetBulletRelSize() * nStretchY / 100;
sal_uLong nScaledLineHeight = aStdFont.GetSize().Height();