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

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

Issue 1161323007: Use nullptr instead of 0 in xml and xmlhttprequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
Index: Source/core/xml/XSLTProcessorLibxslt.cpp
diff --git a/Source/core/xml/XSLTProcessorLibxslt.cpp b/Source/core/xml/XSLTProcessorLibxslt.cpp
index fb2e286a9c8afd0c90315bee9ceaf02ecd71ea3f..b8da3002c6038a7c7eebc565573acaf75981e059 100644
--- a/Source/core/xml/XSLTProcessorLibxslt.cpp
+++ b/Source/core/xml/XSLTProcessorLibxslt.cpp
@@ -90,7 +90,7 @@ static xmlDocPtr docLoaderFunc(
const xmlChar* uri, xmlDictPtr, int options, void* ctxt, xsltLoadType type)
{
if (!globalProcessor)
- return 0;
+ return nullptr;
switch (type) {
case XSLT_LOAD_DOCUMENT: {
@@ -104,7 +104,7 @@ static xmlDocPtr docLoaderFunc(
request.setOriginRestriction(FetchRequest::RestrictToSameOrigin);
ResourcePtr<Resource> resource = globalResourceFetcher->fetchSynchronously(request);
if (!resource || !globalProcessor)
- return 0;
+ return nullptr;
FrameConsole* console = 0;
sof 2015/06/08 07:09:06 s/0/nullptr/
LocalFrame* frame = globalProcessor->xslStylesheet()->ownerDocument()->frame();
@@ -129,7 +129,7 @@ static xmlDocPtr docLoaderFunc(
break;
}
- return 0;
+ return nullptr;
}
static inline void setXSLTLoadCallBack(xsltDocLoaderFunc func, XSLTProcessor* processor, ResourceFetcher* fetcher)
@@ -190,7 +190,7 @@ static bool saveResultToString(xmlDocPtr resultDoc, xsltStylesheetPtr sheet, Str
static const char** xsltParamArrayFromParameterMap(XSLTProcessor::ParameterMap& parameters)
{
if (parameters.isEmpty())
- return 0;
+ return nullptr;
const char** parameterArray = static_cast<const char**>(fastMalloc(((parameters.size() * 2) + 1) * sizeof(char*)));
@@ -234,7 +234,7 @@ static xsltStylesheetPtr xsltStylesheetPointer(Document* document, RefPtrWillBeM
}
if (!cachedStylesheet || !cachedStylesheet->document())
- return 0;
+ return nullptr;
return cachedStylesheet->compileStyleSheet();
}

Powered by Google App Engine
This is Rietveld 408576698