This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new b5d6b0a  get rid of GCC warnings on this class
b5d6b0a is described below

commit b5d6b0aad49b411eaa15f89e76e93f61a11bf685
Author: Alex Harui <aha...@apache.org>
AuthorDate: Thu Feb 22 11:00:20 2018 -0800

    get rid of GCC warnings on this class
---
 .../org/apache/royale/utils/loadBeadFromValuesManager.as    | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git 
a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/loadBeadFromValuesManager.as
 
b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/loadBeadFromValuesManager.as
index eb14ced..20225c6 100644
--- 
a/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/loadBeadFromValuesManager.as
+++ 
b/frameworks/projects/Core/src/main/royale/org/apache/royale/utils/loadBeadFromValuesManager.as
@@ -29,6 +29,9 @@ package org.apache.royale.utils
        *  @playerversion Flash 9
        *  @playerversion AIR 1.1
        *  @productversion Flex 3
+    *  @royaleignorecoercion Class
+    *  @royaleignorecoercion Function
+    *  @royaleignorecoercion org.apache.royale.core.IBead
        */
        public function loadBeadFromValuesManager(classOrInterface:Class, 
classOrInterfaceName:String, strand:IStrand):IBead
        {
@@ -38,7 +41,15 @@ package org.apache.royale.utils
                        var c:Class = ValuesManager.valuesImpl.getValue(strand, 
classOrInterfaceName) as Class;
                        if (c)
                        {
-                               result = new c() as IBead;
+                COMPILE::JS
+                {
+                    var f:Function = c as Function;
+                    result = new f() as IBead;
+                }
+                COMPILE::SWF
+                {
+                    result = new c() as IBead;
+                }
                                if (result)
                                        strand.addBead(result);
                        }

-- 
To stop receiving notification emails like this one, please contact
aha...@apache.org.

Reply via email to