summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-26 15:30:49 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-03-26 15:33:35 +0100
commitf474984cd7b8a29f410a686d540859226039bfe0 (patch)
tree2f2458f82692860849d1d4f122a28982d7857272 /sdext
parent1a9e23609b56f2c45d7fbdf32d9f8a43bc3908ea (diff)
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I207f23b084013f9ce2fcf087a7f335bd8a194f50
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx2
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx2
-rw-r--r--sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
index cf19b30834a7..987ae3c494cb 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
@@ -532,7 +532,7 @@ void PDFOutDev::printPath( GfxPath* pPath ) const
PDFOutDev::PDFOutDev( PDFDoc* pDoc ) :
m_pDoc( pDoc ),
m_aFontMap(),
- m_pUtf8Map( new UnicodeMap((char*)"UTF-8", gTrue, &mapUTF8) ),
+ m_pUtf8Map( new UnicodeMap("UTF-8", gTrue, &mapUTF8) ),
m_bSkipImages(false)
{
}
diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
index cc64db43a9a4..d2602c1b586f 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.hxx
@@ -114,7 +114,7 @@ namespace pdfi
bool operator==(const FontAttributes& rFont) const
{
- return const_cast<GooString*>(&familyName)->cmp(
+ return familyName.cmp(
const_cast<GooString*>(&rFont.familyName))==0 &&
isEmbedded == rFont.isEmbedded &&
isBold == rFont.isBold &&
diff --git a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
index 5fb6967befef..37ec3b992be0 100644
--- a/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
+++ b/sdext/source/pdfimport/xpdfwrapper/pnghelper.cxx
@@ -84,7 +84,7 @@ sal_uInt32 PngHelper::deflateBuffer( const Output_t* i_pBuf, size_t i_nLen, Outp
aStream.opaque = Z_NULL;
deflateInit( &aStream, Z_BEST_COMPRESSION );
aStream.avail_in = uInt(i_nLen);
- aStream.next_in = (Bytef*)i_pBuf;
+ aStream.next_in = const_cast<Bytef*>(i_pBuf);
sal_uInt8 aOutBuf[ 32768 ];
do