summaryrefslogtreecommitdiffstats
path: root/src/widgets/sp-attribute-widget.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/widgets/sp-attribute-widget.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/widgets/sp-attribute-widget.cpp')
-rw-r--r--src/widgets/sp-attribute-widget.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/widgets/sp-attribute-widget.cpp b/src/widgets/sp-attribute-widget.cpp
index d89e6296c..043eb93cc 100644
--- a/src/widgets/sp-attribute-widget.cpp
+++ b/src/widgets/sp-attribute-widget.cpp
@@ -65,9 +65,9 @@ static void sp_attribute_table_object_release (SPObject */*object*/, SPAttribute
SPAttributeTable::SPAttributeTable () :
- _object(NULL),
+ _object(nullptr),
blocked(false),
- table(NULL),
+ table(nullptr),
_attributes(),
_entries(),
modified_connection(),
@@ -76,9 +76,9 @@ SPAttributeTable::SPAttributeTable () :
}
SPAttributeTable::SPAttributeTable (SPObject *object, std::vector<Glib::ustring> &labels, std::vector<Glib::ustring> &attributes, GtkWidget* parent) :
- _object(NULL),
+ _object(nullptr),
blocked(false),
- table(NULL),
+ table(nullptr),
_attributes(),
_entries(),
modified_connection(),
@@ -101,7 +101,7 @@ void SPAttributeTable::clear(void)
{
Gtk::Widget *w = ch[i];
ch.pop_back();
- if (w != NULL)
+ if (w != nullptr)
{
try
{
@@ -118,14 +118,14 @@ void SPAttributeTable::clear(void)
_entries.clear();
delete table;
- table = NULL;
+ table = nullptr;
}
if (_object)
{
modified_connection.disconnect();
release_connection.disconnect();
- _object = NULL;
+ _object = nullptr;
}
}
@@ -151,7 +151,7 @@ void SPAttributeTable::set_object(SPObject *object,
// Create table
table = new Gtk::Grid();
- if (!(parent == NULL))
+ if (!(parent == nullptr))
gtk_container_add(GTK_CONTAINER(parent), (GtkWidget*)table->gobj());
// Fill rows
@@ -208,7 +208,7 @@ void SPAttributeTable::change_object(SPObject *object)
{
modified_connection.disconnect();
release_connection.disconnect();
- _object = NULL;
+ _object = nullptr;
}
_object = object;
@@ -295,7 +295,7 @@ static void sp_attribute_table_object_release (SPObject */*object*/, SPAttribute
{
std::vector<Glib::ustring> labels;
std::vector<Glib::ustring> attributes;
- spat->set_object (NULL, labels, attributes, NULL);
+ spat->set_object (nullptr, labels, attributes, nullptr);
}
/*