summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-02 11:28:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-02 11:28:10 +0200
commita2d5dc55f4d985cf80d33732eb45d1b60d7018f0 (patch)
tree81b6d145f774f76bd945870be0230e5a55f9faa9 /sot
parentd8ba942b99b8d8853afaefac5b211a8f297519ff (diff)
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: I773ac633fb3f7de25c62b1e802ddce4ca2cc31c3
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgole.cxx2
-rw-r--r--sot/source/sdstor/storinfo.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sot/source/sdstor/stgole.cxx b/sot/source/sdstor/stgole.cxx
index 4987b3d67f30..72a3a29ea6f0 100644
--- a/sot/source/sdstor/stgole.cxx
+++ b/sot/source/sdstor/stgole.cxx
@@ -153,7 +153,7 @@ bool StgCompObjStream::Store()
WriteInt32( -1L );
WriteClsId( *this, aClsId ); // Class ID
WriteInt32( aAsciiUserName.getLength() + 1 );
- WriteCharPtr( (const char *)aAsciiUserName.getStr() );
+ WriteCharPtr( aAsciiUserName.getStr() );
WriteUChar( 0 ); // string terminator
WriteClipboardFormat( *this, nCbFormat );
WriteInt32( 0 ); // terminator
diff --git a/sot/source/sdstor/storinfo.cxx b/sot/source/sdstor/storinfo.cxx
index 7ff16c38f5a6..bba6d8f058eb 100644
--- a/sot/source/sdstor/storinfo.cxx
+++ b/sot/source/sdstor/storinfo.cxx
@@ -79,7 +79,7 @@ void WriteClipboardFormat( SvStream & rStm, SotClipboardFormatId nFormat )
OString aAsciiCbFmt(OUStringToOString(aCbFmt,
RTL_TEXTENCODING_ASCII_US));
rStm.WriteInt32( aAsciiCbFmt.getLength() + 1 );
- rStm.WriteCharPtr( (const char *)aAsciiCbFmt.getStr() );
+ rStm.WriteCharPtr( aAsciiCbFmt.getStr() );
rStm.WriteUChar( 0 );
}
else if( nFormat != SotClipboardFormatId::NONE )