summaryrefslogtreecommitdiff
path: root/sw/source/core/bastyp/index.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/bastyp/index.cxx')
-rw-r--r--sw/source/core/bastyp/index.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/bastyp/index.cxx b/sw/source/core/bastyp/index.cxx
index 63b4f56b1cbd..cecbb7308f49 100644
--- a/sw/source/core/bastyp/index.cxx
+++ b/sw/source/core/bastyp/index.cxx
@@ -328,10 +328,10 @@ SwIndexReg::~SwIndexReg()
-void SwIndexReg::Update( const SwIndex& rIdx, xub_StrLen nDiff, BOOL bNeg,
- BOOL /* argument is only used in derived class*/ )
+void SwIndexReg::Update( SwIndex const & rIdx, const xub_StrLen nDiff,
+ const bool bNeg, const bool /* argument is only used in derived class*/ )
{
- SwIndex* pStt = (SwIndex*)&rIdx;
+ SwIndex* pStt = const_cast<SwIndex*>(&rIdx);
xub_StrLen nNewVal = rIdx.nIndex;
if( bNeg )
{