summaryrefslogtreecommitdiff
path: root/glib/src/thread.ccg
diff options
context:
space:
mode:
Diffstat (limited to 'glib/src/thread.ccg')
-rw-r--r--glib/src/thread.ccg4
1 files changed, 2 insertions, 2 deletions
diff --git a/glib/src/thread.ccg b/glib/src/thread.ccg
index 2116b528..cfca2186 100644
--- a/glib/src/thread.ccg
+++ b/glib/src/thread.ccg
@@ -73,7 +73,7 @@ Thread* Thread::create(const sigc::slot<void>& slot, bool /* joinable */)
// Make a copy of slot on the heap
const auto slot_copy = new sigc::slot<void>(slot);
- GError* error = 0;
+ GError* error = nullptr;
const auto thread = g_thread_try_new(NULL,
&call_thread_entry_slot, slot_copy, &error);
@@ -99,7 +99,7 @@ Thread* Thread::create(const sigc::slot<void>& slot, unsigned long stack_size,
// Make a copy of slot on the heap
const auto slot_copy = new sigc::slot<void>(slot);
- GError* error = 0;
+ GError* error = nullptr;
const auto thread = g_thread_create_full(
&call_thread_entry_slot, slot_copy, stack_size, joinable,