aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/htmltitle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/htmltitle.cpp')
-rw-r--r--docs/examples/htmltitle.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/examples/htmltitle.cpp b/docs/examples/htmltitle.cpp
index e31e3e321..8148888a4 100644
--- a/docs/examples/htmltitle.cpp
+++ b/docs/examples/htmltitle.cpp
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -136,9 +136,9 @@ static void StartElement(void *voidContext,
const xmlChar *name,
const xmlChar **attributes)
{
- Context *context = static_cast<Context *>(voidContext);
+ Context *context = (Context *)voidContext;
- if(COMPARE(reinterpret_cast<char *>(name), "TITLE")) {
+ if(COMPARE((char *)name, "TITLE")) {
context->title = "";
context->addTitle = true;
}
@@ -152,9 +152,9 @@ static void StartElement(void *voidContext,
static void EndElement(void *voidContext,
const xmlChar *name)
{
- Context *context = static_cast<Context *>(voidContext);
+ Context *context = (Context *)voidContext;
- if(COMPARE(reinterpret_cast<char *>(name), "TITLE"))
+ if(COMPARE((char *)name, "TITLE"))
context->addTitle = false;
}
@@ -167,7 +167,7 @@ static void handleCharacters(Context *context,
int length)
{
if(context->addTitle)
- context->title.append(reinterpret_cast<char *>(chars), length);
+ context->title.append((char *)chars, length);
}
//
@@ -178,7 +178,7 @@ static void Characters(void *voidContext,
const xmlChar *chars,
int length)
{
- Context *context = static_cast<Context *>(voidContext);
+ Context *context = (Context *)voidContext;
handleCharacters(context, chars, length);
}
@@ -191,7 +191,7 @@ static void cdata(void *voidContext,
const xmlChar *chars,
int length)
{
- Context *context = static_cast<Context *>(voidContext);
+ Context *context = (Context *)voidContext;
handleCharacters(context, chars, length);
}