Chromium Code Reviews| 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(); |
| } |