Title: [155435] trunk/Source/WebCore
Revision
155435
Author
[email protected]
Date
2013-09-10 06:32:39 -0700 (Tue, 10 Sep 2013)

Log Message

[GTK] The code generator produces a warning if a parameter can be NULL
https://bugs.webkit.org/show_bug.cgi?id=121093

Reviewed by Christophe Dumez.

Return an empty string instead of an undefined value if a
particular parameter doesn't need to be checked.

* bindings/scripts/CodeGeneratorGObject.pm:
(GetGReturnMacro):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (155434 => 155435)


--- trunk/Source/WebCore/ChangeLog	2013-09-10 13:30:10 UTC (rev 155434)
+++ trunk/Source/WebCore/ChangeLog	2013-09-10 13:32:39 UTC (rev 155435)
@@ -1,3 +1,16 @@
+2013-09-10  Alberto Garcia  <[email protected]>
+
+        [GTK] The code generator produces a warning if a parameter can be NULL
+        https://bugs.webkit.org/show_bug.cgi?id=121093
+
+        Reviewed by Christophe Dumez.
+
+        Return an empty string instead of an undefined value if a
+        particular parameter doesn't need to be checked.
+
+        * bindings/scripts/CodeGeneratorGObject.pm:
+        (GetGReturnMacro):
+
 2013-09-10  Thiago de Barros Lacerda  <[email protected]>
 
         MediaStream API: Enhance MediaStreamDescriptor add/remove component

Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm (155434 => 155435)


--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm	2013-09-10 13:30:10 UTC (rev 155434)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm	2013-09-10 13:32:39 UTC (rev 155435)
@@ -843,7 +843,7 @@
         }
     } else {
         if (ParamCanBeNull($functionName, $paramName)) {
-            return;
+            return "";
         }
         $condition = "$paramName";
     }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to