diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:29:01 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-26 15:33:30 +0100 |
commit | 0b1d8eff976c212dd7e1281fc6e0c79b0aa01c26 (patch) | |
tree | 92e345ce3ad23821502efbfd6d72112d9227ef87 /forms/source/xforms | |
parent | 0eea902d180b7e31119be4674ecb928eaff77593 (diff) |
const_cast: convert some C-style casts and remove some redundant ones
Change-Id: I4293d3e9244bb2ae3c6b8999c0d682e7f23138fb
Diffstat (limited to 'forms/source/xforms')
-rw-r--r-- | forms/source/xforms/xpathlib/xpathlib.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forms/source/xforms/xpathlib/xpathlib.cxx b/forms/source/xforms/xpathlib/xpathlib.cxx index 609b6faa3575..ae2a650b19e3 100644 --- a/forms/source/xforms/xpathlib/xpathlib.cxx +++ b/forms/source/xforms/xpathlib/xpathlib.cxx @@ -280,7 +280,7 @@ void xforms_nowFunction(xmlXPathParserContextPtr ctxt, int /*nargs*/) DateTime aDateTime( DateTime::SYSTEM ); OString aDateTimeString = makeDateTimeString(aDateTime); xmlChar *pString = static_cast<xmlChar*>(xmlMalloc(aDateTimeString.getLength()+1)); - strncpy(reinterpret_cast<char*>(pString), (char*)aDateTimeString.getStr(), aDateTimeString.getLength()); + strncpy(reinterpret_cast<char*>(pString), aDateTimeString.getStr(), aDateTimeString.getLength()); pString[aDateTimeString.getLength()] = 0; xmlXPathReturnString(ctxt, pString); } |