diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-15 10:46:15 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2018-06-18 12:27:01 +0000 |
| commit | f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43 (patch) | |
| tree | 7c6044fd3a17a2665841959dac9b3b2110b27924 /src/profile-manager.cpp | |
| parent | Run clang-tidy’s modernize-use-override pass. (diff) | |
| download | inkscape-f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43.tar.gz inkscape-f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43.zip | |
Run clang-tidy’s modernize-use-nullptr pass.
This replaces all NULL or 0 with nullptr when assigned to or returned as
a pointer.
Diffstat (limited to 'src/profile-manager.cpp')
| -rw-r--r-- | src/profile-manager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/profile-manager.cpp b/src/profile-manager.cpp index 6cd83839c..252e011a9 100644 --- a/src/profile-manager.cpp +++ b/src/profile-manager.cpp @@ -29,7 +29,7 @@ ProfileManager::ProfileManager(SPDocument *document) : ProfileManager::~ProfileManager() { _resource_connection.disconnect(); - _doc = 0; + _doc = nullptr; } void ProfileManager::_resourcesChanged() @@ -71,11 +71,11 @@ void ProfileManager::_resourcesChanged() ColorProfile* ProfileManager::find(gchar const* name) { - ColorProfile* match = 0; + ColorProfile* match = nullptr; if ( name ) { - unsigned int howMany = childCount(NULL); + unsigned int howMany = childCount(nullptr); for ( unsigned int index = 0; index < howMany; index++ ) { - SPObject *obj = nthChildOf(NULL, index); + SPObject *obj = nthChildOf(nullptr, index); ColorProfile* prof = reinterpret_cast<ColorProfile*>(obj); if (prof && (prof->name && !strcmp(name, prof->name))) { match = prof; |
