From f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 15 Jun 2018 12:46:15 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-nullptr=20pa?= =?UTF-8?q?ss.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer. --- src/extension/patheffect.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/extension/patheffect.cpp') diff --git a/src/extension/patheffect.cpp b/src/extension/patheffect.cpp index 1e9e093ef..82d75dcb3 100644 --- a/src/extension/patheffect.cpp +++ b/src/extension/patheffect.cpp @@ -39,33 +39,33 @@ void PathEffect::processPathEffects (SPDocument * doc, Inkscape::XML::Node * path) { gchar const * patheffectlist = path->attribute("inkscape:path-effects"); - if (patheffectlist == NULL) + if (patheffectlist == nullptr) return; gchar ** patheffects = g_strsplit(patheffectlist, ";", 128); Inkscape::XML::Node * defs = doc->getDefs()->getRepr(); - for (int i = 0; (i < 128) && (patheffects[i] != NULL); i++) { + for (int i = 0; (i < 128) && (patheffects[i] != nullptr); i++) { gchar * patheffect = patheffects[i]; // This is weird, they should all be references... but anyway if (patheffect[0] != '#') continue; Inkscape::XML::Node * prefs = sp_repr_lookup_child(defs, "id", &(patheffect[1])); - if (prefs == NULL) { + if (prefs == nullptr) { continue; } gchar const * ext_id = prefs->attribute("extension"); - if (ext_id == NULL) { + if (ext_id == nullptr) { continue; } Inkscape::Extension::PathEffect * peffect; peffect = dynamic_cast(Inkscape::Extension::db.get(ext_id)); - if (peffect != NULL) { + if (peffect != nullptr) { peffect->processPath(doc, path, prefs); } } -- cgit v1.2.3