gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/rtmp r9883: make an empty Typed Object.


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9883: make an empty Typed Object.
Date: Mon, 22 Dec 2008 19:56:29 -0700
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9883
committer: address@hidden
branch nick: rtmp
timestamp: Mon 2008-12-22 19:56:29 -0700
message:
  make an empty Typed Object.
modified:
  libamf/element.cpp
  libamf/element.h
=== modified file 'libamf/element.cpp'
--- a/libamf/element.cpp        2008-12-22 18:43:54 +0000
+++ b/libamf/element.cpp        2008-12-23 02:56:29 +0000
@@ -818,6 +818,7 @@
 {
 //    GNASH_REPORT_FUNCTION;
     _type = Element::UNDEFINED_AMF0;
+
     return *this;
 }
 
@@ -1010,6 +1011,15 @@
     return *this;
 }
 
+Element &
+Element::makeTypedObject()
+{
+//    GNASH_REPORT_FUNCTION;
+    _type = Element::TYPED_OBJECT_AMF0;  
+
+    return *this;
+}
+
 /// \brief Make this Element a Property with an Typed Object as the value.
 ///
 /// @param data A real pointer to the raw data to use as the value.

=== modified file 'libamf/element.h'
--- a/libamf/element.h  2008-12-22 18:43:54 +0000
+++ b/libamf/element.h  2008-12-23 02:56:29 +0000
@@ -456,6 +456,7 @@
     /// @param name The name of the Property
     ///
     /// @return A reference to this Element.    
+    Element &makeTypedObject();
     Element &makeTypedObject(const std::string &name);
 
     /// \brief Make this Element a Property with an Typed Object as the value.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]