[glibmm] gmmproc: Use NULL for optional properties.
- From: José Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] gmmproc: Use NULL for optional properties.
- Date: Thu, 2 Jun 2011 03:29:19 +0000 (UTC)
commit 0f1f5489fbec570d3c4fd62d393bedbf5ce7ebea
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Wed Jun 1 23:28:14 2011 -0400
gmmproc: Use NULL for optional properties.
* tools/pm/Output.pm(get_ctor_properties): Use NULL instead of
static_cast<char*>(0) for properties that are optional as is done in
convert_args_cpp_to_c().
ChangeLog | 8 ++++++++
tools/pm/Output.pm | 4 ++--
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4025785..be8f9f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2011-06-01 José Alburquerque <jaalburqu svn gnome org>
+ gmmproc: Use NULL for optional properties.
+
+ * tools/pm/Output.pm(get_ctor_properties): Use NULL instead of
+ static_cast<char*>(0) for properties that are optional as is done in
+ convert_args_cpp_to_c().
+
+2011-06-01 José Alburquerque <jaalburqu svn gnome org>
+
gmmproc: _WRAP_[CREATE|CTOR]: Add optional parameter functionality.
* tools/pm/Function.pm (new_ctor): Modified to initialize the new
diff --git a/tools/pm/Output.pm b/tools/pm/Output.pm
index f03c1d3..2fe6805 100644
--- a/tools/pm/Output.pm
+++ b/tools/pm/Output.pm
@@ -992,7 +992,7 @@ sub get_ctor_properties($$$$$)
# possibly added GError parameter).
if ($$cpp_param_optional[$i])
{
- push(@result, "static_cast<char*>(0)");
+ push(@result, "NULL");
next;
}
}
@@ -1000,7 +1000,7 @@ sub get_ctor_properties($$$$$)
{
# If this argument is not in the desired argument list (The argument
# indices are stored in ascending order) then pass NULL to C func.
- push(@result, "static_cast<char*>(0)");
+ push(@result, "NULL");
next;
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]