summaryrefslogtreecommitdiffstats
path: root/src/helper/gettext.cpp
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-15 10:46:15 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2018-06-18 12:27:01 +0000
commitf4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43 (patch)
tree7c6044fd3a17a2665841959dac9b3b2110b27924 /src/helper/gettext.cpp
parentRun clang-tidy’s modernize-use-override pass. (diff)
downloadinkscape-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/helper/gettext.cpp')
-rw-r--r--src/helper/gettext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/gettext.cpp b/src/helper/gettext.cpp
index 1942b373c..226304267 100644
--- a/src/helper/gettext.cpp
+++ b/src/helper/gettext.cpp
@@ -68,7 +68,7 @@ void initialize_gettext() {
// Allow the user to override the locale directory by setting
// the environment variable INKSCAPE_LOCALEDIR.
char const *inkscape_localedir = g_getenv("INKSCAPE_LOCALEDIR");
- if (inkscape_localedir != NULL) {
+ if (inkscape_localedir != nullptr) {
bindtextdomain(GETTEXT_PACKAGE, inkscape_localedir);
}