flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [1/2] git commit: [flex-falcon] [refs/heads/develop] - have strings return '' so GCC doesn't complain
Date Mon, 11 Jul 2016 06:17:33 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop 3d9cba186 -> 148fa8b31


have strings return '' so GCC doesn't complain


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/ac3cfe0c
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/ac3cfe0c
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/ac3cfe0c

Branch: refs/heads/develop
Commit: ac3cfe0c8a4b0773d4c5d2d6f19996018ff358d1
Parents: 3d9cba1
Author: Alex Harui <aharui@apache.org>
Authored: Sun Jul 10 23:15:48 2016 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Sun Jul 10 23:17:25 2016 -0700

----------------------------------------------------------------------
 .../internal/codegen/externals/reference/MethodReference.java      | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/ac3cfe0c/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/externals/reference/MethodReference.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/externals/reference/MethodReference.java
b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/externals/reference/MethodReference.java
index 260345c..777967c 100644
--- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/externals/reference/MethodReference.java
+++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/codegen/externals/reference/MethodReference.java
@@ -200,6 +200,8 @@ public class MethodReference extends MemberReference
         {
         	if (returnString.equals("Number"))
         		returns = "return 0;";
+        	else if (returnString.equals("String"))
+        		returns = "return '';";
         	else
         		returns = " return null;";
         }


Mime
View raw message