Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: Source/core/xml/XSLTExtensions.cpp

Issue 333143003: Fix style errors in core/xml/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/xml/XSLStyleSheetLibxslt.cpp ('k') | Source/core/xml/XSLTProcessorLibxslt.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XSLTExtensions.cpp
diff --git a/Source/core/xml/XSLTExtensions.cpp b/Source/core/xml/XSLTExtensions.cpp
index ac06fafacf853e89661e7a391f2a57ca3126690c..758568c01e0167baf834d22765ea3e9e492a5300 100644
--- a/Source/core/xml/XSLTExtensions.cpp
+++ b/Source/core/xml/XSLTExtensions.cpp
@@ -25,23 +25,22 @@
*/
#include "config.h"
-
#include "core/xml/XSLTExtensions.h"
+
#include "platform/RuntimeEnabledFeatures.h"
#include "wtf/Assertions.h"
-
#include <libxml/xpathInternals.h>
-
#include <libxslt/extensions.h>
#include <libxslt/extra.h>
#include <libxslt/xsltutils.h>
namespace WebCore {
-// FIXME: This code is taken from libexslt 1.1.11; should sync with newer versions.
+// FIXME: This code is taken from libexslt 1.1.11; should sync with newer
+// versions.
static void exsltNodeSetFunction(xmlXPathParserContextPtr ctxt, int nargs)
{
- xmlChar *strval;
+ xmlChar* strval;
xmlNodePtr retNode;
xmlXPathObjectPtr ret;
@@ -56,15 +55,15 @@ static void exsltNodeSetFunction(xmlXPathParserContextPtr ctxt, int nargs)
}
strval = xmlXPathPopString(ctxt);
- retNode = xmlNewDocText(NULL, strval);
+ retNode = xmlNewDocText(0, strval);
ret = xmlXPathNewValueTree(retNode);
// FIXME: It might be helpful to push any errors from xmlXPathNewValueTree
// up to the Javascript Console.
- if (ret != NULL)
+ if (ret)
ret->type = XPATH_NODESET;
- if (strval != NULL)
+ if (strval)
xmlFree(strval);
valuePush(ctxt, ret);
« no previous file with comments | « Source/core/xml/XSLStyleSheetLibxslt.cpp ('k') | Source/core/xml/XSLTProcessorLibxslt.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698