summaryrefslogtreecommitdiff
path: root/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-20 11:31:42 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-20 11:31:42 +0100
commit473c20d86ea0cdd1307bfd5c89f89c3ba2c316a1 (patch)
tree17d98e754ad1fa63d77e59e249049ed8e5dff7c2 /xmlhelp/source/cxxhelp/provider/urlparameter.cxx
parente4fd2972e4e540d5ecc9eeba21c4464aae771c10 (diff)
Some more loplugin:cstylecast: xmlhelp
Change-Id: I1aa45f669711a90cce52bafd839bd84eb711436a
Diffstat (limited to 'xmlhelp/source/cxxhelp/provider/urlparameter.cxx')
-rw-r--r--xmlhelp/source/cxxhelp/provider/urlparameter.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
index 08cdee89b449..6deea999a7e9 100644
--- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
+++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx
@@ -370,7 +370,7 @@ public:
void addToBuffer( const char* buffer,int len );
- sal_Int8* getData() const { return (sal_Int8*) buffer; }
+ sal_Int8 const * getData() const { return reinterpret_cast<sal_Int8 const *>(buffer); }
sal_Int32 getLen() const { return sal_Int32( len ); }
@@ -986,7 +986,7 @@ InputStreamTransformer::InputStreamTransformer( URLParameter* urlParam,
xmlRegisterInputCallbacks(fileMatch, fileOpen, fileRead, fileClose);
xsltStylesheetPtr cur =
- xsltParseStylesheetFile((const xmlChar *)xslURLascii.getStr());
+ xsltParseStylesheetFile(reinterpret_cast<const xmlChar *>(xslURLascii.getStr()));
xmlDocPtr doc = xmlParseFile("vnd.sun.star.zip:/");
@@ -996,7 +996,7 @@ InputStreamTransformer::InputStreamTransformer( URLParameter* urlParam,
xmlChar *doc_txt_ptr=0;
int doc_txt_len;
xsltSaveResultToString(&doc_txt_ptr, &doc_txt_len, res, cur);
- addToBuffer((const char*)doc_txt_ptr, doc_txt_len);
+ addToBuffer(reinterpret_cast<char*>(doc_txt_ptr), doc_txt_len);
xmlFree(doc_txt_ptr);
}
xmlPopInputCallbacks(); //filePatch