[glibmm] Gio: Use of nullptr instead of 0.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Gio: Use of nullptr instead of 0.
- Date: Fri, 20 Nov 2015 09:38:11 +0000 (UTC)
commit 760415293337380b9fa78000670f85bab7406bea
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Nov 20 10:10:51 2015 +0100
Gio: Use of nullptr instead of 0.
gio/giomm/socketsource.cc | 2 +-
gio/src/appinfo.ccg | 16 ++-
gio/src/application.ccg | 28 +++--
gio/src/asyncinitable.ccg | 2 +-
gio/src/asyncresult.ccg | 2 +-
gio/src/drive.ccg | 34 +++---
gio/src/file.ccg | 222 ++++++++++++++++++++--------------------
gio/src/fileenumerator.ccg | 4 +-
gio/src/fileinputstream.ccg | 4 +-
gio/src/fileiostream.ccg | 4 +-
gio/src/fileoutputstream.ccg | 4 +-
gio/src/inputstream.ccg | 10 +-
gio/src/iostream.ccg | 4 +-
gio/src/loadableicon.ccg | 4 +-
gio/src/memoryinputstream.ccg | 2 +-
gio/src/menuitem.ccg | 10 +-
gio/src/mount.ccg | 70 +++++++-------
gio/src/outputstream.ccg | 18 ++--
gio/src/proxy.ccg | 2 +-
gio/src/proxyresolver.ccg | 4 +-
gio/src/resolver.ccg | 12 +-
gio/src/resource.ccg | 8 +-
gio/src/socket.ccg | 2 +-
gio/src/socketclient.ccg | 8 +-
gio/src/socketconnection.ccg | 2 +-
gio/src/socketlistener.ccg | 32 +++---
gio/src/unixconnection.ccg | 4 +-
gio/src/unixfdlist.ccg | 4 +-
gio/src/volume.ccg | 38 ++++----
29 files changed, 285 insertions(+), 271 deletions(-)
---
diff --git a/gio/giomm/socketsource.cc b/gio/giomm/socketsource.cc
index 32c89bd..5018598 100644
--- a/gio/giomm/socketsource.cc
+++ b/gio/giomm/socketsource.cc
@@ -25,7 +25,7 @@ namespace
gboolean giomm_generic_socket_callback(sigc::slot_base* slot, GIOCondition condition)
{
- g_return_val_if_fail(slot != 0, 0);
+ g_return_val_if_fail(slot != nullptr, FALSE);
try
{
diff --git a/gio/src/appinfo.ccg b/gio/src/appinfo.ccg
index 64f04d0..b0aa292 100644
--- a/gio/src/appinfo.ccg
+++ b/gio/src/appinfo.ccg
@@ -55,7 +55,9 @@ bool AppInfo::launch(const Glib::RefPtr<Gio::File>& file, const Glib::RefPtr<App
vec.push_back(file);
GError* gerror = nullptr;
- bool retvalue = g_app_info_launch(gobj(), Glib::ListHandler<Glib::RefPtr<Gio::File>
::vector_to_list(vec).data (), Glib::unwrap(launch_context), &(gerror));
+ const bool retvalue = g_app_info_launch(gobj(),
+ Glib::ListHandler<Glib::RefPtr<Gio::File> >::vector_to_list(vec).data(),
+ Glib::unwrap(launch_context), &(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -68,7 +70,9 @@ bool AppInfo::launch(const Glib::RefPtr<Gio::File>& file)
vec.push_back(file);
GError* gerror = nullptr;
- bool retvalue = g_app_info_launch(gobj(), Glib::ListHandler<Glib::RefPtr<Gio::File>
::vector_to_list(vec).data (), 0, &(gerror));
+ const bool retvalue = g_app_info_launch(gobj(),
+ Glib::ListHandler<Glib::RefPtr<Gio::File> >::vector_to_list(vec).data (),
+ nullptr, &(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -81,7 +85,9 @@ bool AppInfo::launch_uri(const std::string& uri, const Glib::RefPtr<AppLaunchCon
vec.push_back(uri);
GError* gerror = nullptr;
- bool retvalue = g_app_info_launch_uris(gobj(), Glib::ListHandler<std::string>::vector_to_list(vec).data
(), Glib::unwrap(launch_context), &(gerror));
+ const bool retvalue = g_app_info_launch_uris(gobj(),
+ Glib::ListHandler<std::string>::vector_to_list(vec).data (),
+ Glib::unwrap(launch_context), &(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -94,7 +100,9 @@ bool AppInfo::launch_uri(const std::string& uri)
vec.push_back(uri);
GError* gerror = nullptr;
- bool retvalue = g_app_info_launch_uris(gobj(), Glib::ListHandler<std::string>::vector_to_list(vec).data
(), 0, &(gerror));
+ const bool retvalue = g_app_info_launch_uris(gobj(),
+ Glib::ListHandler<std::string>::vector_to_list(vec).data (), nullptr,
+ &(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
diff --git a/gio/src/application.ccg b/gio/src/application.ccg
index 0c29013..9a854a5 100644
--- a/gio/src/application.ccg
+++ b/gio/src/application.ccg
@@ -142,14 +142,18 @@ class OptionArgCallbackData
public:
explicit OptionArgCallbackData(const Gio::Application* application, gchar short_name,
const Glib::OptionGroup::SlotOptionArgString& slot)
- : application_(application), short_name_(short_name),
- slot_string_(new Glib::OptionGroup::SlotOptionArgString(slot)), slot_filename_(0)
+ : application_(application),
+ short_name_(short_name),
+ slot_string_(new Glib::OptionGroup::SlotOptionArgString(slot)),
+ slot_filename_(nullptr)
{ }
explicit OptionArgCallbackData(const Gio::Application* application, gchar short_name,
const Glib::OptionGroup::SlotOptionArgFilename& slot)
- : application_(application), short_name_(short_name),
- slot_string_(0), slot_filename_(new Glib::OptionGroup::SlotOptionArgFilename(slot))
+ : application_(application),
+ short_name_(short_name),
+ slot_string_(nullptr),
+ slot_filename_(new Glib::OptionGroup::SlotOptionArgFilename(slot))
{ }
const Gio::Application* get_application() const { return application_; }
@@ -172,7 +176,7 @@ public:
private:
const Gio::Application* application_;
gchar short_name_;
- // One of these slot pointers is 0 and the other one points to a slot.
+ // One of these slot pointers is nullptr and the other one points to a slot.
Glib::OptionGroup::SlotOptionArgString* slot_string_;
Glib::OptionGroup::SlotOptionArgFilename* slot_filename_;
@@ -269,8 +273,10 @@ const Glib::Class& Application::custom_class_init()
Application::Application(const Glib::ustring& application_id, ApplicationFlags flags)
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
- Glib::ObjectBase(0),
- Glib::Object(Glib::ConstructParams(custom_class_init(), "application_id", (application_id.empty() ? 0 :
application_id.c_str()), "flags", ((GApplicationFlags)(flags)), nullptr))
+ Glib::ObjectBase(nullptr),
+ Glib::Object(Glib::ConstructParams(custom_class_init(), "application_id",
+ (application_id.empty() ? nullptr : application_id.c_str()),
+ "flags", ((GApplicationFlags)(flags)), nullptr))
{
}
@@ -295,7 +301,7 @@ Application::~Application()
//static
void Application::unset_default()
{
- g_application_set_default(0);
+ g_application_set_default(nullptr);
}
void Application_Class::open_callback(GApplication* self, GFile** files,
@@ -434,8 +440,8 @@ void Application::add_main_option_entry_private(GOptionArg arg, const Glib::ustr
// GOptionEntry.long_name must be set, even if it's an empty string.
gchar* lname = g_strdup(long_name.c_str());
- gchar* desc = description.empty() ? 0 : g_strdup(description.c_str());
- gchar* arg_desc = arg_description.empty() ? 0 : g_strdup(arg_description.c_str());
+ gchar* desc = description.empty() ? nullptr : g_strdup(description.c_str());
+ gchar* arg_desc = arg_description.empty() ? nullptr : g_strdup(arg_description.c_str());
ExtraApplicationData* extra_application_data =
static_cast<ExtraApplicationData*>(g_object_get_qdata(gobject_, quark_extra_application_data));
@@ -482,7 +488,7 @@ void Application::add_main_option_entry_private(GOptionArg arg, const Glib::ustr
void Application::unset_resource_base_path()
{
- g_application_set_resource_base_path(gobj(), 0 /* see the C docs. */);
+ g_application_set_resource_base_path(gobj(), nullptr /* see the C docs. */);
}
} // namespace Gio
diff --git a/gio/src/asyncinitable.ccg b/gio/src/asyncinitable.ccg
index 11a6d9b..6710c17 100644
--- a/gio/src/asyncinitable.ccg
+++ b/gio/src/asyncinitable.ccg
@@ -43,7 +43,7 @@ void AsyncInitable::init_async(const SlotAsyncReady& slot, int io_priority)
// and deleted in the callback.
auto slot_copy = new SlotAsyncReady(slot);
- g_async_initable_init_async(gobj(), io_priority, 0,
+ g_async_initable_init_async(gobj(), io_priority, nullptr,
&SignalProxy_async_callback, slot_copy);
}
diff --git a/gio/src/asyncresult.ccg b/gio/src/asyncresult.ccg
index b336f18..d6a4e46 100644
--- a/gio/src/asyncresult.ccg
+++ b/gio/src/asyncresult.ccg
@@ -26,7 +26,7 @@ namespace Gio
static GObject* unwrap_objectbase_custom(const Glib::RefPtr<Glib::ObjectBase>& cpp_instance)
{
- return (cpp_instance ? cpp_instance->gobj() : 0);
+ return (cpp_instance ? cpp_instance->gobj() : nullptr);
}
Glib::RefPtr<Glib::ObjectBase> AsyncResult::get_source_object_base()
diff --git a/gio/src/drive.ccg b/gio/src/drive.ccg
index da3fe0e..0adb0dc 100644
--- a/gio/src/drive.ccg
+++ b/gio/src/drive.ccg
@@ -35,7 +35,7 @@ void Drive::eject(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& c
g_drive_eject_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
- 0, // mount_operation
+ nullptr, // mount_operation
Glib::unwrap(cancellable),
&SignalProxy_async_callback,
slot_copy);
@@ -50,8 +50,8 @@ void Drive::eject(const SlotAsyncReady& slot, MountUnmountFlags flags)
g_drive_eject_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
- 0, // mount_operation
- 0, // cancellable
+ nullptr, // mount_operation
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -81,7 +81,7 @@ void Drive::eject(const Glib::RefPtr<MountOperation>& mount_operation, const Slo
g_drive_eject_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
Glib::unwrap(mount_operation),
- 0, // cancellable
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -91,19 +91,19 @@ void Drive::eject(const Glib::RefPtr<MountOperation>& mount_operation, MountUnmo
g_drive_eject_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
Glib::unwrap(mount_operation),
- 0, // cancellable
- 0, // callback
- 0); // user_data
+ nullptr, // cancellable
+ nullptr, // callback
+ nullptr); // user_data
}
void Drive::eject(MountUnmountFlags flags)
{
g_drive_eject_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
- 0, // mount_operation
- 0, // cancellable
- 0, // callback
- 0); // user_data
+ nullptr, // mount_operation
+ nullptr, // cancellable
+ nullptr, // callback
+ nullptr); // user_data
}
void Drive::poll_for_media(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable)
@@ -127,7 +127,7 @@ void Drive::poll_for_media(const SlotAsyncReady& slot)
auto slot_copy = new SlotAsyncReady(slot);
g_drive_poll_for_media(gobj(),
- 0, // cancellable
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -135,9 +135,9 @@ void Drive::poll_for_media(const SlotAsyncReady& slot)
void Drive::poll_for_media()
{
g_drive_poll_for_media(gobj(),
- 0, // cancellable
- 0,
- 0);
+ nullptr, // cancellable
+ nullptr,
+ nullptr);
}
void
@@ -172,7 +172,7 @@ Drive::stop(const Glib::RefPtr<MountOperation>& mount_operation,
g_drive_stop(gobj(),
static_cast<GMountUnmountFlags>(flags),
Glib::unwrap(mount_operation),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -210,7 +210,7 @@ Drive::start(const Glib::RefPtr<MountOperation>& mount_operation,
g_drive_start(gobj(),
static_cast<GDriveStartFlags>(flags),
Glib::unwrap(mount_operation),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
diff --git a/gio/src/file.ccg b/gio/src/file.ccg
index 7bace93..81315ab 100644
--- a/gio/src/file.ccg
+++ b/gio/src/file.ccg
@@ -214,7 +214,7 @@ File::read_async(const SlotAsyncReady& slot, int io_priority)
g_file_read_async(gobj(),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -261,7 +261,7 @@ File::append_to_async(const SlotAsyncReady& slot, FileCreateFlags flags, int io_
g_file_append_to_async(gobj(),
static_cast<GFileCreateFlags>(flags),
io_priority,
- 0, // cancellable
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -293,7 +293,7 @@ File::create_file_async(const SlotAsyncReady& slot, FileCreateFlags flags, int i
g_file_create_async(gobj(),
static_cast<GFileCreateFlags>(flags),
io_priority,
- 0, // cancellable
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -325,7 +325,7 @@ File::create_file_readwrite_async(const SlotAsyncReady& slot, FileCreateFlags fl
g_file_create_readwrite_async(gobj(),
static_cast<GFileCreateFlags>(flags),
io_priority,
- 0, // cancellable
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -340,7 +340,7 @@ File::replace_async(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>&
SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
g_file_replace_async(gobj(),
- etag.empty() ? 0 : etag.c_str(),
+ etag.empty() ? nullptr : etag.c_str(),
make_backup,
static_cast<GFileCreateFlags>(flags),
io_priority,
@@ -358,11 +358,11 @@ File::replace_async(const SlotAsyncReady& slot, const std::string& etag, bool ma
SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
g_file_replace_async(gobj(),
- etag.empty() ? 0 : etag.c_str(),
+ etag.empty() ? nullptr : etag.c_str(),
make_backup,
static_cast<GFileCreateFlags>(flags),
io_priority,
- 0, // cancellable
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -377,7 +377,7 @@ File::open_readwrite_async(const SlotAsyncReady& slot, int io_priority)
g_file_open_readwrite_async(gobj(),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -406,7 +406,7 @@ File::replace_readwrite_async(const SlotAsyncReady& slot, const Glib::RefPtr<Can
SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
g_file_replace_readwrite_async(gobj(),
- etag.empty() ? 0 : etag.c_str(),
+ etag.empty() ? nullptr : etag.c_str(),
make_backup,
static_cast<GFileCreateFlags>(flags),
io_priority,
@@ -424,18 +424,18 @@ File::replace_readwrite_async(const SlotAsyncReady& slot, const std::string& eta
SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
g_file_replace_readwrite_async(gobj(),
- etag.empty() ? 0 : etag.c_str(),
+ etag.empty() ? nullptr : etag.c_str(),
make_backup,
static_cast<GFileCreateFlags>(flags),
io_priority,
- 0, // cancellable
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
FileType File::query_file_type(FileQueryInfoFlags flags) const
{
- return (FileType)g_file_query_file_type(const_cast<GFile*>(gobj()), (GFileQueryInfoFlags)flags, 0);
+ return (FileType)g_file_query_file_type(const_cast<GFile*>(gobj()), (GFileQueryInfoFlags)flags, nullptr);
}
Glib::RefPtr<FileInfo> File::query_info(const Glib::RefPtr<Cancellable>& cancellable, const std::string&
attributes, FileQueryInfoFlags flags) const
@@ -451,7 +451,7 @@ Glib::RefPtr<FileInfo> File::query_info(const Glib::RefPtr<Cancellable>& cancell
Glib::RefPtr<FileInfo> File::query_info(const std::string& attributes, FileQueryInfoFlags flags) const
{
GError* gerror = nullptr;
- auto retvalue = Glib::wrap(g_file_query_info(const_cast<GFile*>(gobj()), attributes.c_str(),
((GFileQueryInfoFlags)(flags)), 0, &(gerror)));
+ auto retvalue = Glib::wrap(g_file_query_info(const_cast<GFile*>(gobj()), attributes.c_str(),
((GFileQueryInfoFlags)(flags)), nullptr, &(gerror)));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -487,7 +487,7 @@ File::query_info_async(const SlotAsyncReady& slot, const std::string& attributes
attributes.c_str(),
static_cast<GFileQueryInfoFlags>(flags),
io_priority,
- 0, // cancellable
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -506,7 +506,7 @@ Glib::RefPtr<FileInfo> File::query_filesystem_info(const Glib::RefPtr<Cancellabl
Glib::RefPtr<FileInfo> File::query_filesystem_info(const std::string& attributes)
{
GError* gerror = nullptr;
- auto retvalue = Glib::wrap(g_file_query_filesystem_info(gobj(), attributes.c_str(), 0, &(gerror)));
+ auto retvalue = Glib::wrap(g_file_query_filesystem_info(gobj(), attributes.c_str(), nullptr, &(gerror)));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -540,7 +540,7 @@ File::query_filesystem_info_async(const SlotAsyncReady& slot, const std::string&
g_file_query_filesystem_info_async(const_cast<GFile*>(gobj()),
attributes.c_str(),
io_priority,
- 0, // cancellable
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -558,7 +558,7 @@ Glib::RefPtr<FileEnumerator> File::enumerate_children(const Glib::RefPtr<Cancell
Glib::RefPtr<FileEnumerator> File::enumerate_children(const std::string& attributes, FileQueryInfoFlags
flags)
{
GError* gerror = nullptr;
- auto retvalue = Glib::wrap(g_file_enumerate_children(gobj(), attributes.c_str(),
((GFileQueryInfoFlags)(flags)), 0, &(gerror)));
+ auto retvalue = Glib::wrap(g_file_enumerate_children(gobj(), attributes.c_str(),
((GFileQueryInfoFlags)(flags)), nullptr, &(gerror)));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -594,7 +594,7 @@ File::enumerate_children_async(const SlotAsyncReady& slot, const std::string& at
attributes.c_str(),
static_cast<GFileQueryInfoFlags>(flags),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -626,7 +626,7 @@ File::set_display_name_async(const Glib::ustring& display_name, const SlotAsyncR
g_file_set_display_name_async(gobj(),
display_name.c_str(),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -672,7 +672,7 @@ File::copy(const Glib::RefPtr<File>& destination, const SlotFileProgress& slot,
res = g_file_copy(gobj(),
Glib::unwrap(destination),
static_cast<GFileCopyFlags>(flags),
- 0,
+ nullptr,
&SignalProxy_file_progress_callback,
slot_copy,
&gerror);
@@ -692,9 +692,9 @@ File::copy(const Glib::RefPtr<File>& destination, FileCopyFlags flags)
bool res = g_file_copy(gobj(),
Glib::unwrap(destination),
static_cast<GFileCopyFlags>(flags),
- 0,
- 0,
- 0,
+ nullptr,
+ nullptr,
+ nullptr,
&gerror);
if (gerror)
@@ -748,8 +748,8 @@ File::copy_async(const Glib::RefPtr<File>& destination,
static_cast<GFileCopyFlags>(flags),
io_priority,
Glib::unwrap(cancellable),
- 0,
- 0,
+ nullptr,
+ nullptr,
&SignalProxy_async_callback,
slot_ready_copy);
}
@@ -774,7 +774,7 @@ File::copy_async(const Glib::RefPtr<File>& destination,
Glib::unwrap(destination),
static_cast<GFileCopyFlags>(flags),
io_priority,
- 0,
+ nullptr,
&SignalProxy_file_progress_callback,
slot_progress_copy,
&SignalProxy_file_copy_async_callback,
@@ -796,9 +796,9 @@ File::copy_async(const Glib::RefPtr<File>& destination,
Glib::unwrap(destination),
static_cast<GFileCopyFlags>(flags),
io_priority,
- 0,
- 0,
- 0,
+ nullptr,
+ nullptr,
+ nullptr,
&SignalProxy_async_callback,
slot_ready_copy);
}
@@ -844,7 +844,7 @@ File::move(const Glib::RefPtr<File>& destination, const SlotFileProgress& slot,
res = g_file_move(gobj(),
Glib::unwrap(destination),
static_cast<GFileCopyFlags>(flags),
- 0,
+ nullptr,
&SignalProxy_file_progress_callback,
slot_copy,
&gerror);
@@ -866,9 +866,9 @@ File::move(const Glib::RefPtr<File>& destination, FileCopyFlags flags)
res = g_file_move(gobj(),
Glib::unwrap(destination),
static_cast<GFileCopyFlags>(flags),
- 0,
- 0,
- 0,
+ nullptr,
+ nullptr,
+ nullptr,
&gerror);
if (gerror)
@@ -906,7 +906,7 @@ File::set_attributes_async(const Glib::RefPtr<FileInfo>& info, const SlotAsyncRe
Glib::unwrap(info),
static_cast<GFileQueryInfoFlags>(flags),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -956,7 +956,7 @@ void File::mount_mountable(const Glib::RefPtr<MountOperation>& mount_operation,
g_file_mount_mountable(gobj(),
static_cast<GMountMountFlags>(flags),
Glib::unwrap(mount_operation),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -970,8 +970,8 @@ void File::mount_mountable(const SlotAsyncReady& slot, MountMountFlags flags)
g_file_mount_mountable(gobj(),
static_cast<GMountMountFlags>(flags),
- 0,
- 0,
+ nullptr,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -980,10 +980,10 @@ void File::mount_mountable(MountMountFlags flags)
{
g_file_mount_mountable(gobj(),
static_cast<GMountMountFlags>(flags),
- 0,
- 0,
- 0,
- 0);
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr);
}
void File::unmount_mountable(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable,
MountUnmountFlags flags)
@@ -995,7 +995,7 @@ void File::unmount_mountable(const SlotAsyncReady& slot, const Glib::RefPtr<Canc
g_file_unmount_mountable_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
- 0,
+ nullptr,
Glib::unwrap(cancellable),
&SignalProxy_async_callback,
slot_copy);
@@ -1011,8 +1011,8 @@ File::unmount_mountable(const SlotAsyncReady& slot, MountUnmountFlags flags)
g_file_unmount_mountable_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
- 0,
- 0,
+ nullptr,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -1022,10 +1022,10 @@ File::unmount_mountable(MountUnmountFlags flags)
{
g_file_unmount_mountable_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
- 0,
- 0,
- 0,
- 0);
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr);
}
void File::unmount_mountable(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable, const
Glib::RefPtr<MountOperation>& mount_operation, MountUnmountFlags flags)
@@ -1054,7 +1054,7 @@ File::unmount_mountable(const SlotAsyncReady& slot, const Glib::RefPtr<MountOper
g_file_unmount_mountable_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
Glib::unwrap(mount_operation),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -1065,9 +1065,9 @@ File::unmount_mountable(const Glib::RefPtr<MountOperation>& mount_operation, Mou
g_file_unmount_mountable_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
Glib::unwrap(mount_operation),
- 0,
- 0,
- 0);
+ nullptr,
+ nullptr,
+ nullptr);
}
@@ -1097,7 +1097,7 @@ void File::mount_enclosing_volume(const Glib::RefPtr<MountOperation>& mount_oper
g_file_mount_enclosing_volume(gobj(),
static_cast<GMountMountFlags>(flags),
Glib::unwrap(mount_operation),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -1111,8 +1111,8 @@ void File::mount_enclosing_volume(const SlotAsyncReady& slot, MountMountFlags fl
g_file_mount_enclosing_volume(gobj(),
static_cast<GMountMountFlags>(flags),
- 0,
- 0,
+ nullptr,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -1121,10 +1121,10 @@ void File::mount_enclosing_volume(MountMountFlags flags)
{
g_file_mount_enclosing_volume(gobj(),
static_cast<GMountMountFlags>(flags),
- 0,
- 0,
- 0,
- 0);
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr);
}
void
@@ -1154,7 +1154,7 @@ File::eject_mountable(const SlotAsyncReady& slot, const Glib::RefPtr<MountOperat
g_file_eject_mountable_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
Glib::unwrap(mount_operation),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -1165,9 +1165,9 @@ File::eject_mountable(const Glib::RefPtr<MountOperation>& mount_operation, Mount
g_file_eject_mountable_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
Glib::unwrap(mount_operation),
- 0,
- 0,
- 0);
+ nullptr,
+ nullptr,
+ nullptr);
}
void
@@ -1180,7 +1180,7 @@ File::eject_mountable(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable
g_file_eject_mountable_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
- 0,
+ nullptr,
Glib::unwrap(cancellable),
&SignalProxy_async_callback,
slot_copy);
@@ -1196,8 +1196,8 @@ File::eject_mountable(const SlotAsyncReady& slot, MountUnmountFlags flags)
g_file_eject_mountable_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
- 0,
- 0,
+ nullptr,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -1207,10 +1207,10 @@ File::eject_mountable(MountUnmountFlags flags)
{
g_file_eject_mountable_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
- 0,
- 0,
- 0,
- 0);
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr);
}
void
@@ -1236,7 +1236,7 @@ File::load_contents_async(const SlotAsyncReady& slot)
SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
g_file_load_contents_async(gobj(),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -1274,7 +1274,7 @@ File::load_partial_contents_async(const SlotReadMore& slot_read_more,
slots->second = slot_async_copy;
g_file_load_partial_contents_async(gobj(),
- 0,
+ nullptr,
&SignalProxy_load_partial_contents_read_more_callback,
&SignalProxy_load_partial_contents_ready_callback,
slots);
@@ -1284,7 +1284,7 @@ void File::replace_contents(const char* contents, gsize length, const std::strin
{
GError* gerror = nullptr;
gchar* c_etag_new = nullptr;
- g_file_replace_contents(gobj(), contents, length, etag.empty() ? 0 : etag.c_str(),
static_cast<int>(make_backup), ((GFileCreateFlags)(flags)), &c_etag_new,
const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
+ g_file_replace_contents(gobj(), contents, length, etag.empty() ? nullptr : etag.c_str(),
static_cast<int>(make_backup), ((GFileCreateFlags)(flags)), &c_etag_new,
const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1298,7 +1298,7 @@ void File::replace_contents(const char* contents, gsize length, const std::strin
{
GError* gerror = nullptr;
gchar* c_etag_new = nullptr;
- g_file_replace_contents(gobj(), contents, length, etag.empty() ? 0 : etag.c_str(),
static_cast<int>(make_backup), ((GFileCreateFlags)(flags)), &c_etag_new, 0, &(gerror));
+ g_file_replace_contents(gobj(), contents, length, etag.empty() ? nullptr : etag.c_str(),
static_cast<int>(make_backup), ((GFileCreateFlags)(flags)), &c_etag_new, nullptr, &(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1312,7 +1312,7 @@ void File::replace_contents(const std::string& contents, const std::string& etag
{
GError* gerror = nullptr;
gchar* c_etag_new = nullptr;
- g_file_replace_contents(gobj(), contents.c_str(), contents.size(), etag.empty() ? 0 : etag.c_str(),
static_cast<int>(make_backup), ((GFileCreateFlags)(flags)), &c_etag_new,
const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
+ g_file_replace_contents(gobj(), contents.c_str(), contents.size(), etag.empty() ? nullptr : etag.c_str(),
static_cast<int>(make_backup), ((GFileCreateFlags)(flags)), &c_etag_new,
const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1326,7 +1326,7 @@ void File::replace_contents(const std::string& contents, const std::string& etag
{
GError* gerror = nullptr;
gchar* c_etag_new = nullptr;
- g_file_replace_contents(gobj(), contents.c_str(), contents.size(), etag.empty() ? 0 : etag.c_str(),
static_cast<int>(make_backup), ((GFileCreateFlags)(flags)), &c_etag_new, 0, &(gerror));
+ g_file_replace_contents(gobj(), contents.c_str(), contents.size(), etag.empty() ? nullptr : etag.c_str(),
static_cast<int>(make_backup), ((GFileCreateFlags)(flags)), &c_etag_new, nullptr, &(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1353,7 +1353,7 @@ File::replace_contents_async(const SlotAsyncReady& slot,
g_file_replace_contents_async(gobj(),
contents,
length,
- etag.empty() ? 0 : etag.c_str(),
+ etag.empty() ? nullptr : etag.c_str(),
make_backup,
static_cast<GFileCreateFlags>(flags),
Glib::unwrap(cancellable),
@@ -1377,10 +1377,10 @@ File::replace_contents_async(const SlotAsyncReady& slot,
g_file_replace_contents_async(gobj(),
contents,
length,
- etag.empty() ? 0 : etag.c_str(),
+ etag.empty() ? nullptr : etag.c_str(),
make_backup,
static_cast<GFileCreateFlags>(flags),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -1401,7 +1401,7 @@ File::replace_contents_async(const SlotAsyncReady& slot,
g_file_replace_contents_async(gobj(),
contents.c_str(),
contents.size(),
- etag.empty() ? 0 : etag.c_str(),
+ etag.empty() ? nullptr : etag.c_str(),
make_backup,
static_cast<GFileCreateFlags>(flags),
Glib::unwrap(cancellable),
@@ -1424,10 +1424,10 @@ File::replace_contents_async(const SlotAsyncReady& slot,
g_file_replace_contents_async(gobj(),
contents.c_str(),
contents.size(),
- etag.empty() ? 0 : etag.c_str(),
+ etag.empty() ? nullptr : etag.c_str(),
make_backup,
static_cast<GFileCreateFlags>(flags),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -1450,7 +1450,7 @@ void File::replace_contents_finish(const Glib::RefPtr<AsyncResult>& result, std:
void File::replace_contents_finish(const Glib::RefPtr<AsyncResult>& result)
{
GError* gerror = nullptr;
- g_file_replace_contents_finish(gobj(), Glib::unwrap(result), 0, &(gerror));
+ g_file_replace_contents_finish(gobj(), Glib::unwrap(result), nullptr, &(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
}
@@ -1471,7 +1471,7 @@ File::replace_contents_bytes_async(const SlotAsyncReady& slot,
g_file_replace_contents_bytes_async(gobj(),
const_cast<GBytes*>(Glib::unwrap(contents)),
- etag.empty() ? 0 : etag.c_str(),
+ etag.empty() ? nullptr : etag.c_str(),
make_backup,
static_cast<GFileCreateFlags>(flags),
Glib::unwrap(cancellable),
@@ -1493,10 +1493,10 @@ File::replace_contents_bytes_async(const SlotAsyncReady& slot,
g_file_replace_contents_bytes_async(gobj(),
const_cast<GBytes*>(Glib::unwrap(contents)),
- etag.empty() ? 0 : etag.c_str(),
+ etag.empty() ? nullptr : etag.c_str(),
make_backup,
static_cast<GFileCreateFlags>(flags),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -1505,7 +1505,7 @@ File::replace_contents_bytes_async(const SlotAsyncReady& slot,
Glib::RefPtr<FileOutputStream> File::replace(const Glib::RefPtr<Cancellable>& cancellable, const
std::string& etag, bool make_backup, FileCreateFlags flags)
{
GError* gerror = nullptr;
- auto retvalue = Glib::wrap(g_file_replace(gobj(), etag.empty() ? 0 : etag.c_str(),
static_cast<int>(make_backup), ((GFileCreateFlags)(flags)),
const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror)));
+ auto retvalue = Glib::wrap(g_file_replace(gobj(), etag.empty() ? nullptr : etag.c_str(),
static_cast<int>(make_backup), ((GFileCreateFlags)(flags)),
const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror)));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1515,7 +1515,7 @@ Glib::RefPtr<FileOutputStream> File::replace(const Glib::RefPtr<Cancellable>& ca
Glib::RefPtr<FileOutputStream> File::replace(const std::string& etag, bool make_backup, FileCreateFlags
flags)
{
GError* gerror = nullptr;
- auto retvalue = Glib::wrap(g_file_replace(gobj(), etag.empty() ? 0 : etag.c_str(),
static_cast<int>(make_backup), ((GFileCreateFlags)(flags)), 0, &(gerror)));
+ auto retvalue = Glib::wrap(g_file_replace(gobj(), etag.empty() ? nullptr : etag.c_str(),
static_cast<int>(make_backup), ((GFileCreateFlags)(flags)), nullptr, &(gerror)));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1526,7 +1526,7 @@ Glib::RefPtr<FileOutputStream> File::replace(const std::string& etag, bool make_
Glib::RefPtr<FileIOStream> File::replace_readwrite(const Glib::RefPtr<Cancellable>& cancellable, const
std::string& etag, bool make_backup, FileCreateFlags flags)
{
GError* gerror = nullptr;
- auto retvalue = Glib::wrap(g_file_replace_readwrite(gobj(), etag.empty() ? 0 : etag.c_str(),
static_cast<int>(make_backup), ((GFileCreateFlags)(flags)),
const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror)));
+ auto retvalue = Glib::wrap(g_file_replace_readwrite(gobj(), etag.empty() ? nullptr : etag.c_str(),
static_cast<int>(make_backup), ((GFileCreateFlags)(flags)),
const_cast<GCancellable*>(Glib::unwrap(cancellable)), &(gerror)));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1536,7 +1536,7 @@ Glib::RefPtr<FileIOStream> File::replace_readwrite(const Glib::RefPtr<Cancellabl
Glib::RefPtr<FileIOStream> File::replace_readwrite(const std::string& etag, bool make_backup,
FileCreateFlags flags)
{
GError* gerror = nullptr;
- auto retvalue = Glib::wrap(g_file_replace_readwrite(gobj(), etag.empty() ? 0 : etag.c_str(),
static_cast<int>(make_backup), ((GFileCreateFlags)(flags)), 0, &(gerror)));
+ auto retvalue = Glib::wrap(g_file_replace_readwrite(gobj(), etag.empty() ? nullptr : etag.c_str(),
static_cast<int>(make_backup), ((GFileCreateFlags)(flags)), nullptr, &(gerror)));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1558,7 +1558,7 @@ Glib::RefPtr<FileMonitor> File::monitor_directory(const Glib::RefPtr<Cancellable
Glib::RefPtr<FileMonitor> File::monitor_directory(FileMonitorFlags flags)
{
GError* gerror = nullptr;
- auto retvalue = Glib::wrap(g_file_monitor_directory(gobj(), ((GFileMonitorFlags)(flags)), 0, &(gerror)));
+ auto retvalue = Glib::wrap(g_file_monitor_directory(gobj(), ((GFileMonitorFlags)(flags)), nullptr,
&(gerror)));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1578,7 +1578,7 @@ Glib::RefPtr<FileMonitor> File::monitor_file(const Glib::RefPtr<Cancellable>& ca
Glib::RefPtr<FileMonitor> File::monitor_file(FileMonitorFlags flags)
{
GError* gerror = nullptr;
- auto retvalue = Glib::wrap(g_file_monitor_file(gobj(), ((GFileMonitorFlags)(flags)), 0, &(gerror)));
+ auto retvalue = Glib::wrap(g_file_monitor_file(gobj(), ((GFileMonitorFlags)(flags)), nullptr, &(gerror)));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1599,7 +1599,7 @@ Glib::RefPtr<FileMonitor> File::monitor(const Glib::RefPtr<Cancellable>& cancell
Glib::RefPtr<FileMonitor> File::monitor(FileMonitorFlags flags)
{
GError* gerror = nullptr;
- auto retvalue = Glib::wrap(g_file_monitor(gobj(), ((GFileMonitorFlags)(flags)), 0, &(gerror)));
+ auto retvalue = Glib::wrap(g_file_monitor(gobj(), ((GFileMonitorFlags)(flags)), nullptr, &(gerror)));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1662,7 +1662,7 @@ void File::start_mountable(const SlotAsyncReady& slot, const Glib::RefPtr<MountO
g_file_start_mountable(gobj(),
((GDriveStartFlags)(flags)),
Glib::unwrap(start_operation),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -1692,7 +1692,7 @@ void File::stop_mountable(const SlotAsyncReady& slot, const Glib::RefPtr<MountOp
g_file_stop_mountable(gobj(),
((GMountUnmountFlags)(flags)),
Glib::unwrap(start_operation),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -1719,7 +1719,7 @@ void File::poll_mountable(const SlotAsyncReady& slot)
SlotAsyncReady* slot_copy = new SlotAsyncReady(slot);
g_file_poll_mountable(gobj(),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -1747,7 +1747,7 @@ void File::find_enclosing_mount_async(const SlotAsyncReady& slot, int io_priorit
g_file_find_enclosing_mount_async(gobj(),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -1765,7 +1765,7 @@ bool File::set_attributes_from_info(const Glib::RefPtr<FileInfo>& info, const Gl
bool File::set_attributes_from_info(const Glib::RefPtr<FileInfo>& info, FileQueryInfoFlags flags)
{
GError* gerror = nullptr;
- bool retvalue = g_file_set_attributes_from_info(gobj(), Glib::unwrap(info),
((GFileQueryInfoFlags)(flags)), 0, &(gerror));
+ bool retvalue = g_file_set_attributes_from_info(gobj(), Glib::unwrap(info),
((GFileQueryInfoFlags)(flags)), nullptr, &(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1799,7 +1799,7 @@ File::copy_attributes(const Glib::RefPtr<File>& destination, FileCopyFlags flags
res = g_file_copy_attributes(gobj(),
Glib::unwrap(destination),
static_cast<GFileCopyFlags>(flags),
- 0,
+ nullptr,
&gerror);
if (gerror)
@@ -1821,7 +1821,7 @@ Glib::RefPtr<FileOutputStream> File::create_file(const Glib::RefPtr<Cancellable>
Glib::RefPtr<FileOutputStream> File::create_file(FileCreateFlags flags)
{
GError* gerror = nullptr;
- auto retvalue = Glib::wrap(g_file_create(gobj(), ((GFileCreateFlags)(flags)), 0, &(gerror)));
+ auto retvalue = Glib::wrap(g_file_create(gobj(), ((GFileCreateFlags)(flags)), nullptr, &(gerror)));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1841,7 +1841,7 @@ Glib::RefPtr<FileIOStream> File::create_file_readwrite(const Glib::RefPtr<Cancel
Glib::RefPtr<FileIOStream> File::create_file_readwrite(FileCreateFlags flags)
{
GError* gerror = nullptr;
- auto retvalue = Glib::wrap(g_file_create_readwrite(gobj(), ((GFileCreateFlags)(flags)), 0, &(gerror)));
+ auto retvalue = Glib::wrap(g_file_create_readwrite(gobj(), ((GFileCreateFlags)(flags)), nullptr,
&(gerror)));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1861,7 +1861,7 @@ Glib::RefPtr<FileOutputStream> File::append_to(const Glib::RefPtr<Cancellable>&
Glib::RefPtr<FileOutputStream> File::append_to(FileCreateFlags flags)
{
GError* gerror = nullptr;
- auto retvalue = Glib::wrap(g_file_append_to(gobj(), ((GFileCreateFlags)(flags)), 0, &(gerror)));
+ auto retvalue = Glib::wrap(g_file_append_to(gobj(), ((GFileCreateFlags)(flags)), nullptr, &(gerror)));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1884,7 +1884,7 @@ bool File::load_contents(const Glib::RefPtr<Cancellable>& cancellable, char*& co
bool File::load_contents(const Glib::RefPtr<Cancellable>& cancellable, char*& contents, gsize& length)
{
GError* gerror = nullptr;
- bool retvalue = g_file_load_contents(gobj(), Glib::unwrap(cancellable), &contents, &(length), 0,
&(gerror));
+ bool retvalue = g_file_load_contents(gobj(), Glib::unwrap(cancellable), &contents, &(length), nullptr,
&(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1895,7 +1895,7 @@ bool File::load_contents(char*& contents, gsize& length, std::string& etag_out)
{
GError* gerror = nullptr;
gchar* cetag_out = nullptr;
- bool retvalue = g_file_load_contents(gobj(), 0, &contents, &(length), &cetag_out, &(gerror));
+ bool retvalue = g_file_load_contents(gobj(), nullptr, &contents, &(length), &cetag_out, &(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1907,7 +1907,7 @@ bool File::load_contents(char*& contents, gsize& length, std::string& etag_out)
bool File::load_contents(char*& contents, gsize& length)
{
GError* gerror = nullptr;
- bool retvalue = g_file_load_contents(gobj(), 0, &contents, &(length), 0, &(gerror));
+ bool retvalue = g_file_load_contents(gobj(), nullptr, &contents, &(length), nullptr, &(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1930,7 +1930,7 @@ bool File::load_contents_finish(const Glib::RefPtr<AsyncResult>& result, char*&
bool File::load_contents_finish(const Glib::RefPtr<AsyncResult>& result, char*& contents, gsize& length)
{
GError* gerror = nullptr;
- bool retvalue = g_file_load_contents_finish(gobj(), Glib::unwrap(result), &contents, &(length), 0,
&(gerror));
+ bool retvalue = g_file_load_contents_finish(gobj(), Glib::unwrap(result), &contents, &(length), nullptr,
&(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1953,7 +1953,7 @@ bool File::load_partial_contents_finish(const Glib::RefPtr<AsyncResult>& result,
bool File::load_partial_contents_finish(const Glib::RefPtr<AsyncResult>& result, char*& contents, gsize&
length)
{
GError* gerror = nullptr;
- bool retvalue = g_file_load_partial_contents_finish(gobj(), Glib::unwrap(result), &contents, &(length), 0,
&(gerror));
+ bool retvalue = g_file_load_partial_contents_finish(gobj(), Glib::unwrap(result), &contents, &(length),
nullptr, &(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -1962,7 +1962,7 @@ bool File::load_partial_contents_finish(const Glib::RefPtr<AsyncResult>& result,
bool File::has_parent() const
{
- return g_file_has_parent(const_cast<GFile*>(gobj()), 0);
+ return g_file_has_parent(const_cast<GFile*>(gobj()), nullptr);
}
@@ -1994,7 +1994,7 @@ File::remove_async(const SlotAsyncReady& slot_ready,
g_file_delete_async(gobj(),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_ready_copy);
}
@@ -2028,7 +2028,7 @@ File::trash_async(const SlotAsyncReady& slot_ready,
g_file_trash_async(gobj(),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_ready_copy);
}
@@ -2061,7 +2061,7 @@ File::make_directory_async(const SlotAsyncReady& slot_ready,
g_file_make_directory_async(gobj(),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_ready_copy);
}
diff --git a/gio/src/fileenumerator.ccg b/gio/src/fileenumerator.ccg
index d5cb85c..aff8c88 100644
--- a/gio/src/fileenumerator.ccg
+++ b/gio/src/fileenumerator.ccg
@@ -53,7 +53,7 @@ FileEnumerator::next_files_async(const SlotAsyncReady& slot, int num_files, int
g_file_enumerator_next_files_async(gobj(),
num_files,
io_priority,
- 0, // cancellable
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -86,7 +86,7 @@ FileEnumerator::close_async(int io_priority,
g_file_enumerator_close_async(gobj(),
io_priority,
- 0, // cancellable
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
diff --git a/gio/src/fileinputstream.ccg b/gio/src/fileinputstream.ccg
index 74242dd..769cbae 100644
--- a/gio/src/fileinputstream.ccg
+++ b/gio/src/fileinputstream.ccg
@@ -37,7 +37,7 @@ Glib::RefPtr<FileInfo> FileInputStream::query_info(const Glib::RefPtr<Cancellabl
Glib::RefPtr<FileInfo> FileInputStream::query_info(const std::string& attributes)
{
GError* gerror = nullptr;
- auto retvalue = Glib::wrap(g_file_input_stream_query_info(gobj(), g_strdup((attributes).c_str()), 0,
&(gerror)));
+ auto retvalue = Glib::wrap(g_file_input_stream_query_info(gobj(), g_strdup((attributes).c_str()), nullptr,
&(gerror)));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -71,7 +71,7 @@ FileInputStream::query_info_async(const SlotAsyncReady& slot, const std::string&
g_file_input_stream_query_info_async(gobj(),
const_cast<char*>(attributes.c_str()),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
diff --git a/gio/src/fileiostream.ccg b/gio/src/fileiostream.ccg
index e1a7c2d..1ef1bb6 100644
--- a/gio/src/fileiostream.ccg
+++ b/gio/src/fileiostream.ccg
@@ -37,7 +37,7 @@ Glib::RefPtr<FileInfo> FileIOStream::query_info(const Glib::RefPtr<Cancellable>&
Glib::RefPtr<FileInfo> FileIOStream::query_info(const std::string& attributes)
{
GError* gerror = nullptr;
- auto retvalue = Glib::wrap(g_file_io_stream_query_info(gobj(), g_strdup((attributes).c_str()), 0,
&(gerror)));
+ auto retvalue = Glib::wrap(g_file_io_stream_query_info(gobj(), g_strdup((attributes).c_str()), nullptr,
&(gerror)));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -71,7 +71,7 @@ FileIOStream::query_info_async(const SlotAsyncReady& slot, const std::string& at
g_file_io_stream_query_info_async(gobj(),
const_cast<char*>(attributes.c_str()),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
diff --git a/gio/src/fileoutputstream.ccg b/gio/src/fileoutputstream.ccg
index a0c31df..429d5cb 100644
--- a/gio/src/fileoutputstream.ccg
+++ b/gio/src/fileoutputstream.ccg
@@ -41,7 +41,7 @@ Glib::RefPtr<FileInfo> FileOutputStream::query_info(const Glib::RefPtr<Cancellab
Glib::RefPtr<FileInfo> FileOutputStream::query_info(const std::string& attributes)
{
GError* gerror = nullptr;
- auto retvalue = Glib::wrap(g_file_output_stream_query_info(gobj(), g_strdup((attributes).c_str()), 0,
&(gerror)));
+ auto retvalue = Glib::wrap(g_file_output_stream_query_info(gobj(), g_strdup((attributes).c_str()),
nullptr, &(gerror)));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -77,7 +77,7 @@ FileOutputStream::query_info_async(const SlotAsyncReady& slot, const std::string
g_file_output_stream_query_info_async(gobj(),
const_cast<char*>(attributes.c_str()),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
diff --git a/gio/src/inputstream.ccg b/gio/src/inputstream.ccg
index 54a8262..9a6ca6c 100644
--- a/gio/src/inputstream.ccg
+++ b/gio/src/inputstream.ccg
@@ -54,7 +54,7 @@ InputStream::read_async(void* buffer, gsize count, const SlotAsyncReady& slot, i
buffer,
count,
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -89,7 +89,7 @@ InputStream::read_all_async(void* buffer, gsize count, const SlotAsyncReady& slo
buffer,
count,
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -122,7 +122,7 @@ InputStream::read_bytes_async(gsize count, const SlotAsyncReady& slot, int io_pr
g_input_stream_read_bytes_async(gobj(),
count,
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -155,7 +155,7 @@ InputStream::skip_async(gsize count, const SlotAsyncReady& slot, int io_priority
g_input_stream_skip_async(gobj(),
count,
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -185,7 +185,7 @@ InputStream::close_async(const SlotAsyncReady& slot, int io_priority)
g_input_stream_close_async(gobj(),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
diff --git a/gio/src/iostream.ccg b/gio/src/iostream.ccg
index 49b8280..057bda8 100644
--- a/gio/src/iostream.ccg
+++ b/gio/src/iostream.ccg
@@ -50,7 +50,7 @@ IOStream::close_async(const SlotAsyncReady& slot, int io_priority)
g_io_stream_close_async(gobj(),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -80,7 +80,7 @@ IOStream::splice_async(const Glib::RefPtr<IOStream>& stream2,
auto slot_copy = new SlotAsyncReady(slot);
g_io_stream_splice_async(gobj(), Glib::unwrap(stream2),
- static_cast<GIOStreamSpliceFlags>(flags), io_priority, 0,
+ static_cast<GIOStreamSpliceFlags>(flags), io_priority, nullptr,
&SignalProxy_async_callback, slot_copy);
}
diff --git a/gio/src/loadableicon.ccg b/gio/src/loadableicon.ccg
index 9ae383d..718d301 100644
--- a/gio/src/loadableicon.ccg
+++ b/gio/src/loadableicon.ccg
@@ -55,7 +55,7 @@ LoadableIcon::load(int size, Glib::ustring& type)
Glib::wrap(g_loadable_icon_load(gobj(),
size,
&c_type,
- 0,
+ nullptr,
&gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -93,7 +93,7 @@ LoadableIcon::load_async(int size, const SlotAsyncReady& slot)
g_loadable_icon_load_async(gobj(),
size,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
diff --git a/gio/src/memoryinputstream.ccg b/gio/src/memoryinputstream.ccg
index cf30294..72ceb52 100644
--- a/gio/src/memoryinputstream.ccg
+++ b/gio/src/memoryinputstream.ccg
@@ -42,7 +42,7 @@ private:
void destroy_data_callback(void* user_data)
{
auto slot_with_data = static_cast<SlotWithData*>(user_data);
- g_return_if_fail(slot_with_data != 0);
+ g_return_if_fail(slot_with_data != nullptr);
try
{
diff --git a/gio/src/menuitem.ccg b/gio/src/menuitem.ccg
index 4c011ab..5903cd7 100644
--- a/gio/src/menuitem.ccg
+++ b/gio/src/menuitem.ccg
@@ -47,12 +47,12 @@ MenuItem::MenuItem(const Glib::RefPtr<MenuModel>& submenu)
void MenuItem::set_action_and_target(const Glib::ustring& action)
{
- g_menu_item_set_action_and_target_value(gobj(), action.c_str(), 0);
+ g_menu_item_set_action_and_target_value(gobj(), action.c_str(), nullptr);
}
void MenuItem::set_action(const Glib::ustring& action)
{
- g_menu_item_set_action_and_target_value(gobj(), action.c_str(), 0);
+ g_menu_item_set_action_and_target_value(gobj(), action.c_str(), nullptr);
}
void MenuItem::unset_target()
@@ -60,17 +60,17 @@ void MenuItem::unset_target()
const gchar *action_name = nullptr;
g_menu_item_get_attribute (gobj(), G_MENU_ATTRIBUTE_ACTION, "&s", &action_name);
- g_menu_item_set_action_and_target_value(gobj(), action_name, 0);
+ g_menu_item_set_action_and_target_value(gobj(), action_name, nullptr);
}
void MenuItem::unset_action_and_target()
{
- g_menu_item_set_action_and_target_value(gobj(), 0, 0);
+ g_menu_item_set_action_and_target_value(gobj(), nullptr, nullptr);
}
void MenuItem::unset_icon()
{
- g_menu_item_set_icon(gobj(), 0);
+ g_menu_item_set_icon(gobj(), nullptr);
}
} // namespace Gio
diff --git a/gio/src/mount.ccg b/gio/src/mount.ccg
index d5c3644..ae2e619 100644
--- a/gio/src/mount.ccg
+++ b/gio/src/mount.ccg
@@ -36,7 +36,7 @@ void Mount::unmount(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>&
g_mount_unmount_with_operation(gobj(),
GMountUnmountFlags(flags),
- 0, // mount_operation
+ nullptr, // mount_operation
Glib::unwrap(cancellable),
&SignalProxy_async_callback,
slot_copy);
@@ -51,8 +51,8 @@ void Mount::unmount(const SlotAsyncReady& slot, MountUnmountFlags flags)
g_mount_unmount_with_operation(gobj(),
GMountUnmountFlags(flags),
- 0, // mount_operation
- 0, // cancellable
+ nullptr, // mount_operation
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -61,10 +61,10 @@ void Mount::unmount(MountUnmountFlags flags)
{
g_mount_unmount_with_operation(gobj(),
GMountUnmountFlags(flags),
- 0, // mount_operation
- 0, // cancellable
- 0, // callback
- 0); // data
+ nullptr, // mount_operation
+ nullptr, // cancellable
+ nullptr, // callback
+ nullptr); // data
}
void Mount::unmount(const Glib::RefPtr<MountOperation>& mount_operation,
@@ -94,7 +94,7 @@ void Mount::unmount(const Glib::RefPtr<MountOperation>& mount_operation,
g_mount_unmount_with_operation(gobj(),
GMountUnmountFlags(flags),
Glib::unwrap(mount_operation),
- 0, // cancellable
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -105,9 +105,9 @@ void Mount::unmount(const Glib::RefPtr<MountOperation>& mount_operation,
g_mount_unmount_with_operation(gobj(),
GMountUnmountFlags(flags),
Glib::unwrap(mount_operation),
- 0, // cancellable
- 0, // callback
- 0); // data
+ nullptr, // cancellable
+ nullptr, // callback
+ nullptr); // data
}
@@ -136,7 +136,7 @@ void Mount::remount(const Glib::RefPtr<MountOperation>& operation, const SlotAsy
g_mount_remount(gobj(),
static_cast<GMountMountFlags>(flags),
Glib::unwrap(operation),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -146,19 +146,19 @@ void Mount::remount(const Glib::RefPtr<MountOperation>& operation, MountMountFla
g_mount_remount(gobj(),
static_cast<GMountMountFlags>(flags),
Glib::unwrap(operation),
- 0,
- 0,
- 0);
+ nullptr,
+ nullptr,
+ nullptr);
}
void Mount::remount(MountMountFlags flags)
{
g_mount_remount(gobj(),
static_cast<GMountMountFlags>(flags),
- 0,
- 0,
- 0,
- 0);
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr);
}
void Mount::eject(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& cancellable,
MountUnmountFlags flags)
@@ -170,7 +170,7 @@ void Mount::eject(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>& c
g_mount_eject_with_operation(gobj(),
GMountUnmountFlags(flags),
- 0, // mount_operation
+ nullptr, // mount_operation
Glib::unwrap(cancellable),
&SignalProxy_async_callback,
slot_copy);
@@ -185,8 +185,8 @@ void Mount::eject(const SlotAsyncReady& slot, MountUnmountFlags flags)
g_mount_eject_with_operation(gobj(),
GMountUnmountFlags(flags),
- 0, // mount_operation
- 0, // cancellable
+ nullptr, // mount_operation
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -195,10 +195,10 @@ void Mount::eject(MountUnmountFlags flags)
{
g_mount_eject_with_operation(gobj(),
GMountUnmountFlags(flags),
- 0, // mount_operation
- 0, // cancellable
- 0, // callback
- 0); // data
+ nullptr, // mount_operation
+ nullptr, // cancellable
+ nullptr, // callback
+ nullptr); // data
}
void Mount::eject(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsyncReady& slot, const
Glib::RefPtr<Cancellable>& cancellable, MountUnmountFlags flags)
@@ -226,7 +226,7 @@ void Mount::eject(const Glib::RefPtr<MountOperation>& mount_operation, const Slo
g_mount_eject_with_operation(gobj(),
GMountUnmountFlags(flags),
Glib::unwrap(mount_operation),
- 0, // cancellable
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -236,9 +236,9 @@ void Mount::eject(const Glib::RefPtr<MountOperation>& mount_operation, MountUnmo
g_mount_eject_with_operation(gobj(),
GMountUnmountFlags(flags),
Glib::unwrap(mount_operation),
- 0, // cancellable
- 0, // callback
- 0); // data
+ nullptr, // cancellable
+ nullptr, // callback
+ nullptr); // data
}
@@ -265,7 +265,7 @@ void Mount::guess_content_type(const SlotAsyncReady& slot, bool force_rescan)
g_mount_guess_content_type(gobj(),
force_rescan,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -274,9 +274,9 @@ void Mount::guess_content_type(bool force_rescan)
{
g_mount_guess_content_type(gobj(),
force_rescan,
- 0,
- 0,
- 0);
+ nullptr,
+ nullptr,
+ nullptr);
}
void Mount::guess_content_type_sync(const Glib::RefPtr<Cancellable>& cancellable, bool force_rescan)
@@ -291,7 +291,7 @@ void Mount::guess_content_type_sync(const Glib::RefPtr<Cancellable>& cancellable
void Mount::guess_content_type_sync(bool force_rescan)
{
GError* gerror = nullptr;
- g_mount_guess_content_type_sync(gobj(), force_rescan, 0, &gerror);
+ g_mount_guess_content_type_sync(gobj(), force_rescan, nullptr, &gerror);
if(gerror)
::Glib::Error::throw_exception(gerror);
}
diff --git a/gio/src/outputstream.ccg b/gio/src/outputstream.ccg
index df1c53b..caef1eb 100644
--- a/gio/src/outputstream.ccg
+++ b/gio/src/outputstream.ccg
@@ -53,7 +53,7 @@ OutputStream::write_async(const void* buffer, gsize count, const SlotAsyncReady&
buffer,
count,
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -89,7 +89,7 @@ OutputStream::write_all_async(const void* buffer, gsize count, const SlotAsyncRe
buffer,
count,
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -124,7 +124,7 @@ OutputStream::splice_async(const Glib::RefPtr<InputStream>& source, const SlotAs
Glib::unwrap(source),
static_cast<GOutputStreamSpliceFlags>(flags),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -154,7 +154,7 @@ OutputStream::flush_async(const SlotAsyncReady& slot, int io_priority)
g_output_stream_flush_async(gobj(),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -184,7 +184,7 @@ OutputStream::close_async(const SlotAsyncReady& slot, int io_priority)
g_output_stream_close_async(gobj(),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -202,7 +202,7 @@ gssize OutputStream::write(const std::string& buffer, const Glib::RefPtr<Cancell
gssize OutputStream::write(const std::string& buffer)
{
GError* gerror = nullptr;
- gssize retvalue = g_output_stream_write(gobj(), buffer.data(), buffer.size(), 0, &(gerror));
+ gssize retvalue = g_output_stream_write(gobj(), buffer.data(), buffer.size(), nullptr, &(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -222,7 +222,7 @@ bool OutputStream::write_all(const std::string& buffer, gsize& bytes_written, co
bool OutputStream::write_all(const std::string& buffer, gsize& bytes_written)
{
GError* gerror = nullptr;
- bool retvalue = g_output_stream_write_all(gobj(), buffer.data(), buffer.size(), &(bytes_written), 0,
&(gerror));
+ bool retvalue = g_output_stream_write_all(gobj(), buffer.data(), buffer.size(), &(bytes_written), nullptr,
&(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -257,7 +257,7 @@ OutputStream::write_bytes_async(const Glib::RefPtr<const Glib::Bytes>& bytes, co
g_output_stream_write_bytes_async(gobj(),
const_cast<GBytes*>(Glib::unwrap(bytes)),
io_priority,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -275,7 +275,7 @@ gssize OutputStream::splice(const Glib::RefPtr<InputStream>& source, const Glib:
gssize OutputStream::splice(const Glib::RefPtr<InputStream>& source, OutputStreamSpliceFlags flags)
{
GError* gerror = nullptr;
- gssize retvalue = g_output_stream_splice(gobj(), Glib::unwrap(source),
((GOutputStreamSpliceFlags)(flags)), 0, &(gerror));
+ gssize retvalue = g_output_stream_splice(gobj(), Glib::unwrap(source),
((GOutputStreamSpliceFlags)(flags)), nullptr, &(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
diff --git a/gio/src/proxy.ccg b/gio/src/proxy.ccg
index f524836..c47db49 100644
--- a/gio/src/proxy.ccg
+++ b/gio/src/proxy.ccg
@@ -51,7 +51,7 @@ void Proxy::connect_async(const Glib::RefPtr<IOStream>& connection, const Glib::
g_proxy_connect_async(gobj(),
Glib::unwrap(connection),
const_cast<GProxyAddress*>(Glib::unwrap(proxy_address)),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
diff --git a/gio/src/proxyresolver.ccg b/gio/src/proxyresolver.ccg
index b5a0584..1f67a9b 100644
--- a/gio/src/proxyresolver.ccg
+++ b/gio/src/proxyresolver.ccg
@@ -31,7 +31,7 @@ std::vector<Glib::ustring> ProxyResolver::lookup(const Glib::ustring& uri)
{
GError* gerror = nullptr;
auto retvalue =
- Glib::ArrayHandler<Glib::ustring>::array_to_vector(g_proxy_resolver_lookup(gobj(), uri.c_str(), 0,
&(gerror)), Glib::OWNERSHIP_DEEP);
+ Glib::ArrayHandler<Glib::ustring>::array_to_vector(g_proxy_resolver_lookup(gobj(), uri.c_str(), nullptr,
&(gerror)), Glib::OWNERSHIP_DEEP);
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -61,7 +61,7 @@ void ProxyResolver::lookup_async(const Glib::ustring& uri, const SlotAsyncReady&
g_proxy_resolver_lookup_async(gobj(),
uri.c_str(),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
diff --git a/gio/src/resolver.ccg b/gio/src/resolver.ccg
index 0c5f959..05cb77b 100644
--- a/gio/src/resolver.ccg
+++ b/gio/src/resolver.ccg
@@ -56,7 +56,7 @@ Resolver::lookup_by_name_async(const Glib::ustring& hostname,
g_resolver_lookup_by_name_async (gobj(),
hostname.c_str(),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -83,7 +83,7 @@ Resolver::lookup_by_address_async(const Glib::RefPtr<InetAddress>& address,
g_resolver_lookup_by_address_async (gobj(),
Glib::unwrap(address),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -118,7 +118,7 @@ Resolver::lookup_service_async(const Glib::ustring& service,
service.c_str(),
protocol.c_str(),
domain.c_str(),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -132,7 +132,7 @@ Resolver::lookup_records_async(const Glib::ustring& rrname,
auto slot_copy = new SlotAsyncReady(slot);
g_resolver_lookup_records_async(gobj(),
- (rrname.empty() ? 0 : rrname.c_str()),
+ (rrname.empty() ? nullptr : rrname.c_str()),
static_cast<GResolverRecordType>(record_type),
Glib::unwrap(cancellable),
&SignalProxy_async_callback,
@@ -147,9 +147,9 @@ Resolver::lookup_records_async(const Glib::ustring& rrname,
auto slot_copy = new SlotAsyncReady(slot);
g_resolver_lookup_records_async(gobj(),
- (rrname.empty() ? 0 : rrname.c_str()),
+ (rrname.empty() ? nullptr : rrname.c_str()),
static_cast<GResolverRecordType>(record_type),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
diff --git a/gio/src/resource.ccg b/gio/src/resource.ccg
index 89d776a..87d08fa 100644
--- a/gio/src/resource.ccg
+++ b/gio/src/resource.ccg
@@ -38,7 +38,7 @@ void Resource::get_file_exists(const std::string& path, ResourceLookupFlags look
{
GError* gerror = nullptr;
g_resource_get_info(const_cast<GResource*>(gobj()), path.c_str(),
- (GResourceLookupFlags)lookup_flags, 0, 0, &gerror);
+ (GResourceLookupFlags)lookup_flags, nullptr, nullptr, &gerror);
if (gerror)
::Glib::Error::throw_exception(gerror);
}
@@ -46,7 +46,7 @@ void Resource::get_file_exists(const std::string& path, ResourceLookupFlags look
bool Resource::get_file_exists_nothrow(const std::string& path, ResourceLookupFlags lookup_flags) const
{
return g_resource_get_info(const_cast<GResource*>(gobj()), path.c_str(),
- (GResourceLookupFlags)lookup_flags, 0, 0, 0);
+ (GResourceLookupFlags)lookup_flags, nullptr, nullptr, nullptr);
}
// Hand-coded because we want ResourceFlags& instead of guint32&.
@@ -70,7 +70,7 @@ void Resource::get_file_exists_global(const std::string& path, ResourceLookupFla
{
GError* gerror = 0;
g_resources_get_info(path.c_str(),
- (GResourceLookupFlags)lookup_flags, 0, 0, &gerror);
+ (GResourceLookupFlags)lookup_flags, nullptr, nullptr, &gerror);
if (gerror)
::Glib::Error::throw_exception(gerror);
}
@@ -78,7 +78,7 @@ void Resource::get_file_exists_global(const std::string& path, ResourceLookupFla
//static
bool Resource::get_file_exists_global_nothrow(const std::string& path, ResourceLookupFlags lookup_flags)
{
- return g_resources_get_info(path.c_str(), (GResourceLookupFlags)lookup_flags, 0, 0, 0);
+ return g_resources_get_info(path.c_str(), (GResourceLookupFlags)lookup_flags, nullptr, nullptr, nullptr);
}
} // namespace Gio
diff --git a/gio/src/socket.ccg b/gio/src/socket.ccg
index 571bc00..a7e0ff6 100644
--- a/gio/src/socket.ccg
+++ b/gio/src/socket.ccg
@@ -72,7 +72,7 @@ gssize Socket::receive_from(Glib::RefPtr<SocketAddress>& address, char* buffer,
{
GError* gerror = nullptr;
GSocketAddress* caddr = nullptr;
- auto retvalue = g_socket_receive_from(gobj(), &caddr, buffer, size, 0, &(gerror));
+ auto retvalue = g_socket_receive_from(gobj(), &caddr, buffer, size, nullptr, &(gerror));
if(gerror)
::Glib::Error::throw_exception(gerror);
diff --git a/gio/src/socketclient.ccg b/gio/src/socketclient.ccg
index 6448c21..e279382 100644
--- a/gio/src/socketclient.ccg
+++ b/gio/src/socketclient.ccg
@@ -52,7 +52,7 @@ SocketClient::connect_async(const Glib::RefPtr<SocketConnectable>& connectable,
g_socket_client_connect_async (gobj(),
connectable->gobj (),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -89,7 +89,7 @@ SocketClient::connect_to_host_async(const Glib::ustring& host_and_port,
g_socket_client_connect_to_host_async (gobj(),
host_and_port.c_str (),
default_port,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -126,7 +126,7 @@ SocketClient::connect_to_service_async(const Glib::ustring& domain,
g_socket_client_connect_to_service_async (gobj(),
domain.c_str (),
service.c_str (),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -159,7 +159,7 @@ SocketClient::connect_to_uri_async(const Glib::ustring& uri, guint16 default_por
g_socket_client_connect_to_uri_async (gobj(),
uri.c_str(), default_port,
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
diff --git a/gio/src/socketconnection.ccg b/gio/src/socketconnection.ccg
index 79094c1..fcda995 100644
--- a/gio/src/socketconnection.ccg
+++ b/gio/src/socketconnection.ccg
@@ -45,7 +45,7 @@ SocketConnection::connect_async(const Glib::RefPtr<SocketAddress>& address,
g_socket_connection_connect_async(gobj(),
Glib::unwrap(address),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
diff --git a/gio/src/socketlistener.ccg b/gio/src/socketlistener.ccg
index 1697ced..afcad2c 100644
--- a/gio/src/socketlistener.ccg
+++ b/gio/src/socketlistener.ccg
@@ -28,7 +28,7 @@ bool SocketListener::add_socket(const Glib::RefPtr<Socket>& socket)
GError* gerror = nullptr;
const bool retval = g_socket_listener_add_socket(gobj(),
Glib::unwrap(socket),
- 0,
+ nullptr,
&gerror);
if(gerror)
@@ -66,7 +66,7 @@ bool SocketListener::add_address(const Glib::RefPtr<SocketAddress>& address, Soc
Glib::unwrap(address),
static_cast<GSocketType>(type),
static_cast<GSocketProtocol>(protocol),
- 0,
+ nullptr,
&retaddr,
&gerror);
if(gerror)
@@ -82,7 +82,7 @@ bool SocketListener::add_address(const Glib::RefPtr<SocketAddress>& address, Soc
bool SocketListener::add_inet_port(guint16 port)
{
GError* gerror = nullptr;
- const bool retvalue = g_socket_listener_add_inet_port(gobj(), port, 0, &gerror);
+ const bool retvalue = g_socket_listener_add_inet_port(gobj(), port, nullptr, &gerror);
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -93,7 +93,7 @@ bool SocketListener::add_inet_port(guint16 port)
guint16 SocketListener::add_any_inet_port()
{
GError* gerror = nullptr;
- const auto retvalue = g_socket_listener_add_any_inet_port(gobj(), 0, &gerror);
+ const auto retvalue = g_socket_listener_add_any_inet_port(gobj(), nullptr, &gerror);
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -124,7 +124,7 @@ Glib::RefPtr<Socket> SocketListener::accept_socket(Glib::RefPtr<Glib::Object>& s
GObject *retobj = nullptr;
auto retvalue = g_socket_listener_accept_socket(gobj(),
&retobj,
- 0,
+ nullptr,
&gerror);
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -139,7 +139,7 @@ Glib::RefPtr<Socket> SocketListener::accept_socket(const Glib::RefPtr<Cancellabl
{
GError* gerror = nullptr;
auto retvalue = g_socket_listener_accept_socket(gobj(),
- 0,
+ nullptr,
Glib::unwrap(cancellable),
&gerror);
if(gerror)
@@ -152,8 +152,8 @@ Glib::RefPtr<Socket> SocketListener::accept_socket()
{
GError* gerror = nullptr;
auto retvalue = g_socket_listener_accept_socket(gobj(),
- 0,
- 0,
+ nullptr,
+ nullptr,
&gerror);
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -183,7 +183,7 @@ void SocketListener::accept_socket_async(const SlotAsyncReady& slot)
auto slot_copy = new SlotAsyncReady(slot);
g_socket_listener_accept_socket_async(gobj(),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -209,7 +209,7 @@ Glib::RefPtr<Socket> SocketListener::accept_socket_finish(const Glib::RefPtr<Asy
GError* gerror = nullptr;
auto retvalue = g_socket_listener_accept_socket_finish(gobj(),
Glib::unwrap(result),
- 0,
+ nullptr,
&gerror);
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -241,7 +241,7 @@ Glib::RefPtr<SocketConnection> SocketListener::accept(Glib::RefPtr<Object>& sour
GObject *retobj = nullptr;
auto retvalue = g_socket_listener_accept(gobj(),
&retobj,
- 0,
+ nullptr,
&gerror);
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -256,7 +256,7 @@ Glib::RefPtr<SocketConnection> SocketListener::accept(const Glib::RefPtr<Cancell
{
GError* gerror = nullptr;
auto retvalue = g_socket_listener_accept(gobj(),
- 0,
+ nullptr,
Glib::unwrap(cancellable),
&gerror);
if(gerror)
@@ -269,8 +269,8 @@ Glib::RefPtr<SocketConnection> SocketListener::accept()
{
GError* gerror = nullptr;
auto retvalue = g_socket_listener_accept(gobj(),
- 0,
- 0,
+ nullptr,
+ nullptr,
&gerror);
if(gerror)
::Glib::Error::throw_exception(gerror);
@@ -287,7 +287,7 @@ void SocketListener::accept_async(const SlotAsyncReady& slot)
auto slot_copy = new SlotAsyncReady(slot);
g_socket_listener_accept_async(gobj(),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -326,7 +326,7 @@ Glib::RefPtr<SocketConnection> SocketListener::accept_finish(const Glib::RefPtr<
GError* gerror = nullptr;
auto retvalue = g_socket_listener_accept_finish(gobj(),
Glib::unwrap(result),
- 0,
+ nullptr,
&gerror);
if(gerror)
::Glib::Error::throw_exception(gerror);
diff --git a/gio/src/unixconnection.ccg b/gio/src/unixconnection.ccg
index bddc969..597dd8a 100644
--- a/gio/src/unixconnection.ccg
+++ b/gio/src/unixconnection.ccg
@@ -40,7 +40,7 @@ void UnixConnection::receive_credentials_async(const SlotAsyncReady& slot)
auto slot_copy = new SlotAsyncReady(slot);
g_unix_connection_receive_credentials_async(gobj(),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
@@ -64,7 +64,7 @@ UnixConnection::send_credentials_async(const SlotAsyncReady& slot)
auto slot_copy = new SlotAsyncReady(slot);
g_unix_connection_send_credentials_async(gobj(),
- 0,
+ nullptr,
&SignalProxy_async_callback,
slot_copy);
}
diff --git a/gio/src/unixfdlist.ccg b/gio/src/unixfdlist.ccg
index b17b0f6..c4a6508 100644
--- a/gio/src/unixfdlist.ccg
+++ b/gio/src/unixfdlist.ccg
@@ -24,7 +24,7 @@ namespace Gio
UnixFDList::UnixFDList(const Glib::ArrayHandle<int>& fds)
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
- Glib::ObjectBase(0),
+ Glib::ObjectBase(nullptr),
// g_unix_fd_list_new_from_array() must be called.
// Its parameters don't correspond to properties.
// _CONSTRUCT() + g_unit_fd_list_append() is not an alternative.
@@ -37,7 +37,7 @@ UnixFDList::UnixFDList(const Glib::ArrayHandle<int>& fds)
UnixFDList::UnixFDList(const Glib::ArrayHandle<int>& fds, int n_fds)
:
// Mark this class as non-derived to allow C++ vfuncs to be skipped.
- Glib::ObjectBase(0),
+ Glib::ObjectBase(nullptr),
// g_unix_fd_list_new_from_array() must be called.
// Its parameters don't correspond to properties.
// _CONSTRUCT() + g_unit_fd_list_append() is not an alternative.
diff --git a/gio/src/volume.ccg b/gio/src/volume.ccg
index 0bffbcb..00c17f6 100644
--- a/gio/src/volume.ccg
+++ b/gio/src/volume.ccg
@@ -55,7 +55,7 @@ Volume::mount(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsy
g_volume_mount(gobj(),
static_cast<GMountMountFlags>(flags),
Glib::unwrap(mount_operation),
- 0, // cancellable
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -66,9 +66,9 @@ Volume::mount(const Glib::RefPtr<MountOperation>& mount_operation, MountMountFla
g_volume_mount(gobj(),
static_cast<GMountMountFlags>(flags),
Glib::unwrap(mount_operation),
- 0, // cancellable
- 0,
- 0);
+ nullptr, // cancellable
+ nullptr,
+ nullptr);
}
void
@@ -76,10 +76,10 @@ Volume::mount(MountMountFlags flags)
{
g_volume_mount(gobj(),
static_cast<GMountMountFlags>(flags),
- 0,
- 0, // cancellable
- 0,
- 0);
+ nullptr,
+ nullptr, // cancellable
+ nullptr,
+ nullptr);
}
@@ -92,7 +92,7 @@ void Volume::eject(const SlotAsyncReady& slot, const Glib::RefPtr<Cancellable>&
g_volume_eject_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
- 0, // mount_operation
+ nullptr, // mount_operation
Glib::unwrap(cancellable),
&SignalProxy_async_callback,
slot_copy);
@@ -107,8 +107,8 @@ void Volume::eject(const SlotAsyncReady& slot, MountUnmountFlags flags)
g_volume_eject_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
- 0, // mount_operation
- 0, // cancellable
+ nullptr, // mount_operation
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -117,10 +117,10 @@ void Volume::eject(MountUnmountFlags flags)
{
g_volume_eject_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
- 0, // mount_operation
- 0, // cancellable
- 0, // callback
- 0); // data
+ nullptr, // mount_operation
+ nullptr, // cancellable
+ nullptr, // callback
+ nullptr); // data
}
void Volume::eject(const Glib::RefPtr<MountOperation>& mount_operation, const SlotAsyncReady& slot, const
Glib::RefPtr<Cancellable>& cancellable, MountUnmountFlags flags)
@@ -148,7 +148,7 @@ void Volume::eject(const Glib::RefPtr<MountOperation>& mount_operation, const Sl
g_volume_eject_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
Glib::unwrap(mount_operation),
- 0, // cancellable
+ nullptr, // cancellable
&SignalProxy_async_callback,
slot_copy);
}
@@ -158,9 +158,9 @@ void Volume::eject(const Glib::RefPtr<MountOperation>& mount_operation, MountUnm
g_volume_eject_with_operation(gobj(),
static_cast<GMountUnmountFlags>(flags),
Glib::unwrap(mount_operation),
- 0, // cancellable
- 0, // callback
- 0); // data
+ nullptr, // cancellable
+ nullptr, // callback
+ nullptr); // data
}
} // namespace Gio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]