summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/licensor.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/ui/widget/licensor.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 '')
-rw-r--r--src/ui/widget/licensor.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/widget/licensor.cpp b/src/ui/widget/licensor.cpp
index c9d46bc66..a8325525b 100644
--- a/src/ui/widget/licensor.cpp
+++ b/src/ui/widget/licensor.cpp
@@ -37,10 +37,10 @@ namespace Widget {
//===================================================
const struct rdf_license_t _proprietary_license =
- {_("Proprietary"), "", 0};
+ {_("Proprietary"), "", nullptr};
const struct rdf_license_t _other_license =
- {Q_("MetadataLicence|Other"), "", 0};
+ {Q_("MetadataLicence|Other"), "", nullptr};
class LicenseItem : public Gtk::RadioButton {
public:
@@ -67,7 +67,7 @@ void LicenseItem::on_toggled()
_wr.setUpdating (true);
SPDocument *doc = SP_ACTIVE_DOCUMENT;
- rdf_set_license (doc, _lic->details ? _lic : 0);
+ rdf_set_license (doc, _lic->details ? _lic : nullptr);
if (doc->priv->sensitive) {
DocumentUndo::done(doc, SP_VERB_NONE, _("Document license updated"));
}
@@ -80,7 +80,7 @@ void LicenseItem::on_toggled()
Licensor::Licensor()
: Gtk::VBox(false,4),
- _eentry (NULL)
+ _eentry (nullptr)
{
}
@@ -97,7 +97,7 @@ void Licensor::init (Registry& wr)
LicenseItem *i;
wr.setUpdating (true);
- i = Gtk::manage (new LicenseItem (&_proprietary_license, _eentry, wr, NULL));
+ i = Gtk::manage (new LicenseItem (&_proprietary_license, _eentry, wr, nullptr));
Gtk::RadioButtonGroup group = i->get_group();
add (*i);
LicenseItem *pd = i;