summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/lineinfo.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:28:47 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:28:47 +0200
commitb2c8ea3a0253ce87f1b292fbb19b461a53c14912 (patch)
tree853cc34d4ced72c029f9b5bc4b3077d8b1944412 /sw/source/core/doc/lineinfo.cxx
parentbc2becdf1a12a1020584ee808c965e41f1837383 (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I8d27ae80d209159690182ab91e272cf00e9f863d
Diffstat (limited to 'sw/source/core/doc/lineinfo.cxx')
-rw-r--r--sw/source/core/doc/lineinfo.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/lineinfo.cxx b/sw/source/core/doc/lineinfo.cxx
index 578b5767c8a6..c4f5cbb22a30 100644
--- a/sw/source/core/doc/lineinfo.cxx
+++ b/sw/source/core/doc/lineinfo.cxx
@@ -121,7 +121,7 @@ SwCharFormat* SwLineNumberInfo::GetCharFormat( IDocumentStylePoolAccess& rIDSPA
if ( !GetRegisteredIn() )
{
SwCharFormat* pFormat = rIDSPA.GetCharFormatFromPool( RES_POOLCHR_LINENUM );
- pFormat->Add( (SwClient*)this );
+ pFormat->Add( const_cast<SwClient*>(static_cast<SwClient const *>(this)) );
}
return const_cast<SwCharFormat*>(static_cast<const SwCharFormat*>(GetRegisteredIn()));
}