gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r11352: Trivial cleanups in TextFiel


From: Benjamin Wolsey
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r11352: Trivial cleanups in TextField.
Date: Fri, 31 Jul 2009 13:59:35 +0200
User-agent: Bazaar (1.13.1)

------------------------------------------------------------
revno: 11352
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Fri 2009-07-31 13:59:35 +0200
message:
  Trivial cleanups in TextField.
  
  Make various objects non-static.
modified:
  libcore/TextField.cpp
  libcore/asobj/flash/desktop/ClipboardFormats_as.cpp
  libcore/asobj/flash/desktop/ClipboardTransferMode_as.cpp
  libcore/asobj/flash/display/ActionScriptVersion_as.cpp
  libcore/asobj/flash/display/BitmapDataChannel_as.cpp
  libcore/asobj/flash/display/CapsStyle_as.cpp
  libcore/asobj/flash/display/GradientType_as.cpp
  libcore/asobj/flash/display/InterpolationMethod_as.cpp
  libcore/asobj/flash/display/JointStyle_as.cpp
  libcore/asobj/flash/display/LineScaleMode_as.cpp
  libcore/asobj/flash/display/PixelSnapping_as.cpp
  libcore/asobj/flash/display/SWFVersion_as.cpp
  libcore/asobj/flash/display/SpreadMethod_as.cpp
  libcore/asobj/flash/display/StageAlign_as.cpp
  libcore/asobj/flash/net/SharedObjectFlushStatus_as.cpp
  libcore/asobj/flash/net/URLLoaderDataFormat_as.cpp
  libcore/asobj/flash/net/URLRequestMethod_as.cpp
  libcore/asobj/flash/printing/PrintJobOrientation_as.cpp
  libcore/asobj/flash/system/IMEConversionMode_as.cpp
  libcore/asobj/flash/text/AntiAliasType_as.cpp
  libcore/asobj/flash/text/GridFitType_as.cpp
  libcore/asobj/flash/text/TextColorType_as.cpp
  libcore/asobj/flash/text/TextDisplayMode_as.cpp
  libcore/asobj/flash/text/TextFieldAutoSize_as.cpp
  libcore/asobj/flash/text/TextFieldType_as.cpp
  libcore/asobj/flash/xml/XMLNodeType_as.cpp
    ------------------------------------------------------------
    revno: 11349.1.7
    committer: Benjamin Wolsey <address@hidden>
    branch nick: temp
    timestamp: Fri 2009-07-31 08:50:45 +0200
    message:
      The pointer isn't unused. It's a character, not a DisplayObject.
    modified:
      libcore/TextField.cpp
    ------------------------------------------------------------
    revno: 11349.1.8
    committer: Benjamin Wolsey <address@hidden>
    branch nick: temp
    timestamp: Fri 2009-07-31 09:38:05 +0200
    message:
      Make constant enumeration objects non-static, as they are members of 
Global.
    modified:
      libcore/asobj/flash/desktop/ClipboardFormats_as.cpp
      libcore/asobj/flash/desktop/ClipboardTransferMode_as.cpp
      libcore/asobj/flash/display/ActionScriptVersion_as.cpp
      libcore/asobj/flash/display/BitmapDataChannel_as.cpp
      libcore/asobj/flash/display/CapsStyle_as.cpp
      libcore/asobj/flash/display/GradientType_as.cpp
      libcore/asobj/flash/display/InterpolationMethod_as.cpp
      libcore/asobj/flash/display/JointStyle_as.cpp
      libcore/asobj/flash/display/LineScaleMode_as.cpp
      libcore/asobj/flash/display/PixelSnapping_as.cpp
      libcore/asobj/flash/display/SWFVersion_as.cpp
      libcore/asobj/flash/display/SpreadMethod_as.cpp
      libcore/asobj/flash/display/StageAlign_as.cpp
      libcore/asobj/flash/net/SharedObjectFlushStatus_as.cpp
      libcore/asobj/flash/net/URLLoaderDataFormat_as.cpp
      libcore/asobj/flash/net/URLRequestMethod_as.cpp
      libcore/asobj/flash/printing/PrintJobOrientation_as.cpp
      libcore/asobj/flash/system/IMEConversionMode_as.cpp
      libcore/asobj/flash/text/AntiAliasType_as.cpp
      libcore/asobj/flash/text/GridFitType_as.cpp
      libcore/asobj/flash/text/TextColorType_as.cpp
      libcore/asobj/flash/text/TextDisplayMode_as.cpp
      libcore/asobj/flash/text/TextFieldAutoSize_as.cpp
      libcore/asobj/flash/text/TextFieldType_as.cpp
      libcore/asobj/flash/xml/XMLNodeType_as.cpp
=== modified file 'libcore/TextField.cpp'
--- a/libcore/TextField.cpp     2009-07-31 05:42:04 +0000
+++ b/libcore/TextField.cpp     2009-07-31 06:50:45 +0000
@@ -694,12 +694,12 @@
                     if (t != 0)
                     {
                         if (!_restrictDefined) {
-                            // Insert one copy of the DisplayObject
+                            // Insert one copy of the character
                             // at the cursor position.
                               s.insert(m_cursor, 1, t);
                             m_cursor++;
                         } else if (_restrictedchars.count(t)) {
-                            // Insert one copy of the DisplayObject
+                            // Insert one copy of the character
                             // at the cursor position.
                               s.insert(m_cursor, 1, t);
                             m_cursor++;
@@ -3381,7 +3381,6 @@
 textfield_restrict(const fn_call& fn)
 {
     boost::intrusive_ptr<TextField> text = ensureType<TextField>(fn.this_ptr);
-    UNUSED(text);
 
     if (!fn.nargs) {
         // Getter

=== modified file 'libcore/asobj/flash/desktop/ClipboardFormats_as.cpp'
--- a/libcore/asobj/flash/desktop/ClipboardFormats_as.cpp       2009-07-29 
05:31:28 +0000
+++ b/libcore/asobj/flash/desktop/ClipboardFormats_as.cpp       2009-07-31 
07:38:05 +0000
@@ -43,7 +43,7 @@
 
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* obj = gl->createObject(proto);
+    as_object* obj = gl->createObject(proto);
     attachClipboardFormatsStaticInterface(*obj);
     where.init_member(getName(uri), obj, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/desktop/ClipboardTransferMode_as.cpp'
--- a/libcore/asobj/flash/desktop/ClipboardTransferMode_as.cpp  2009-07-28 
11:58:27 +0000
+++ b/libcore/asobj/flash/desktop/ClipboardTransferMode_as.cpp  2009-07-31 
07:38:05 +0000
@@ -44,7 +44,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* obj = gl->createObject(proto);
+    as_object* obj = gl->createObject(proto);
     attachClipboardTransferModeStaticInterface(*obj);
     where.init_member(getName(uri), obj, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/display/ActionScriptVersion_as.cpp'
--- a/libcore/asobj/flash/display/ActionScriptVersion_as.cpp    2009-07-28 
11:58:27 +0000
+++ b/libcore/asobj/flash/display/ActionScriptVersion_as.cpp    2009-07-31 
07:38:05 +0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachActionScriptVersionStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/display/BitmapDataChannel_as.cpp'
--- a/libcore/asobj/flash/display/BitmapDataChannel_as.cpp      2009-07-28 
11:58:27 +0000
+++ b/libcore/asobj/flash/display/BitmapDataChannel_as.cpp      2009-07-31 
07:38:05 +0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachBitmapDataChannelStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/display/CapsStyle_as.cpp'
--- a/libcore/asobj/flash/display/CapsStyle_as.cpp      2009-07-28 11:58:27 
+0000
+++ b/libcore/asobj/flash/display/CapsStyle_as.cpp      2009-07-31 07:38:05 
+0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachCapsStyleStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/display/GradientType_as.cpp'
--- a/libcore/asobj/flash/display/GradientType_as.cpp   2009-07-28 11:58:27 
+0000
+++ b/libcore/asobj/flash/display/GradientType_as.cpp   2009-07-31 07:38:05 
+0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachGradientTypeStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/display/InterpolationMethod_as.cpp'
--- a/libcore/asobj/flash/display/InterpolationMethod_as.cpp    2009-07-28 
11:58:27 +0000
+++ b/libcore/asobj/flash/display/InterpolationMethod_as.cpp    2009-07-31 
07:38:05 +0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachInterpolationMethodStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/display/JointStyle_as.cpp'
--- a/libcore/asobj/flash/display/JointStyle_as.cpp     2009-07-28 11:58:27 
+0000
+++ b/libcore/asobj/flash/display/JointStyle_as.cpp     2009-07-31 07:38:05 
+0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachJointStyleStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/display/LineScaleMode_as.cpp'
--- a/libcore/asobj/flash/display/LineScaleMode_as.cpp  2009-07-28 11:58:27 
+0000
+++ b/libcore/asobj/flash/display/LineScaleMode_as.cpp  2009-07-31 07:38:05 
+0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachLineScaleModeStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/display/PixelSnapping_as.cpp'
--- a/libcore/asobj/flash/display/PixelSnapping_as.cpp  2009-07-28 11:58:27 
+0000
+++ b/libcore/asobj/flash/display/PixelSnapping_as.cpp  2009-07-31 07:38:05 
+0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachPixelSnappingStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/display/SWFVersion_as.cpp'
--- a/libcore/asobj/flash/display/SWFVersion_as.cpp     2009-07-28 11:58:27 
+0000
+++ b/libcore/asobj/flash/display/SWFVersion_as.cpp     2009-07-31 07:38:05 
+0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachSWFVersionStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/display/SpreadMethod_as.cpp'
--- a/libcore/asobj/flash/display/SpreadMethod_as.cpp   2009-07-28 11:58:27 
+0000
+++ b/libcore/asobj/flash/display/SpreadMethod_as.cpp   2009-07-31 07:38:05 
+0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachSpreadMethodStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/display/StageAlign_as.cpp'
--- a/libcore/asobj/flash/display/StageAlign_as.cpp     2009-07-28 11:58:27 
+0000
+++ b/libcore/asobj/flash/display/StageAlign_as.cpp     2009-07-31 07:38:05 
+0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static boost::intrusive_ptr<as_object> obj = gl->createObject(proto);
+    boost::intrusive_ptr<as_object> obj = gl->createObject(proto);
 
     attachStageAlignStaticInterface(*obj);
 

=== modified file 'libcore/asobj/flash/net/SharedObjectFlushStatus_as.cpp'
--- a/libcore/asobj/flash/net/SharedObjectFlushStatus_as.cpp    2009-07-28 
11:58:27 +0000
+++ b/libcore/asobj/flash/net/SharedObjectFlushStatus_as.cpp    2009-07-31 
07:38:05 +0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachSharedObjectFlushStatusStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/net/URLLoaderDataFormat_as.cpp'
--- a/libcore/asobj/flash/net/URLLoaderDataFormat_as.cpp        2009-07-28 
11:58:27 +0000
+++ b/libcore/asobj/flash/net/URLLoaderDataFormat_as.cpp        2009-07-31 
07:38:05 +0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachURLLoaderDataFormatStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/net/URLRequestMethod_as.cpp'
--- a/libcore/asobj/flash/net/URLRequestMethod_as.cpp   2009-07-28 11:58:27 
+0000
+++ b/libcore/asobj/flash/net/URLRequestMethod_as.cpp   2009-07-31 07:38:05 
+0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachURLRequestMethodStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/printing/PrintJobOrientation_as.cpp'
--- a/libcore/asobj/flash/printing/PrintJobOrientation_as.cpp   2009-07-28 
11:58:27 +0000
+++ b/libcore/asobj/flash/printing/PrintJobOrientation_as.cpp   2009-07-31 
07:38:05 +0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachPrintJobOrientationStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/system/IMEConversionMode_as.cpp'
--- a/libcore/asobj/flash/system/IMEConversionMode_as.cpp       2009-07-28 
11:58:27 +0000
+++ b/libcore/asobj/flash/system/IMEConversionMode_as.cpp       2009-07-31 
07:38:05 +0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachIMEConversionModeStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/text/AntiAliasType_as.cpp'
--- a/libcore/asobj/flash/text/AntiAliasType_as.cpp     2009-07-28 11:58:27 
+0000
+++ b/libcore/asobj/flash/text/AntiAliasType_as.cpp     2009-07-31 07:38:05 
+0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachAntiAliasTypeStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/text/GridFitType_as.cpp'
--- a/libcore/asobj/flash/text/GridFitType_as.cpp       2009-07-28 11:58:27 
+0000
+++ b/libcore/asobj/flash/text/GridFitType_as.cpp       2009-07-31 07:38:05 
+0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachGridFitTypeStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/text/TextColorType_as.cpp'
--- a/libcore/asobj/flash/text/TextColorType_as.cpp     2009-07-28 11:58:27 
+0000
+++ b/libcore/asobj/flash/text/TextColorType_as.cpp     2009-07-31 07:38:05 
+0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachTextColorTypeStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/text/TextDisplayMode_as.cpp'
--- a/libcore/asobj/flash/text/TextDisplayMode_as.cpp   2009-07-28 11:58:27 
+0000
+++ b/libcore/asobj/flash/text/TextDisplayMode_as.cpp   2009-07-31 07:38:05 
+0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachTextDisplayModeStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));

=== modified file 'libcore/asobj/flash/text/TextFieldAutoSize_as.cpp'
--- a/libcore/asobj/flash/text/TextFieldAutoSize_as.cpp 2009-07-28 11:58:27 
+0000
+++ b/libcore/asobj/flash/text/TextFieldAutoSize_as.cpp 2009-07-31 07:38:05 
+0000
@@ -40,7 +40,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static boost::intrusive_ptr<as_object> obj = gl->createObject(proto);
+    boost::intrusive_ptr<as_object> obj = gl->createObject(proto);
 
     attachTextFieldAutoSizeInterface(*obj);
        where.init_member(getName(uri), obj.get(), as_object::DefaultFlags,

=== modified file 'libcore/asobj/flash/text/TextFieldType_as.cpp'
--- a/libcore/asobj/flash/text/TextFieldType_as.cpp     2009-07-28 11:58:27 
+0000
+++ b/libcore/asobj/flash/text/TextFieldType_as.cpp     2009-07-31 07:38:05 
+0000
@@ -44,7 +44,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static boost::intrusive_ptr<as_object> obj = gl->createObject(proto);
+    boost::intrusive_ptr<as_object> obj = gl->createObject(proto);
 
     attachTextFieldTypeStaticInterface(*obj);
        where.init_member(getName(uri), obj.get(), as_object::DefaultFlags,

=== modified file 'libcore/asobj/flash/xml/XMLNodeType_as.cpp'
--- a/libcore/asobj/flash/xml/XMLNodeType_as.cpp        2009-07-28 11:58:27 
+0000
+++ b/libcore/asobj/flash/xml/XMLNodeType_as.cpp        2009-07-31 07:38:05 
+0000
@@ -45,7 +45,7 @@
 {
     Global_as* gl = getGlobal(where);
     as_object* proto = getObjectInterface();
-    static as_object* o = gl->createObject(proto);
+    as_object* o = gl->createObject(proto);
     attachXMLNodeTypeStaticInterface(*o);
     where.init_member(getName(uri), o, as_object::DefaultFlags,
             getNamespace(uri));


reply via email to

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