gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog server/debugger.cpp


From: Bastiaan Jacques
Subject: [Gnash-commit] gnash ChangeLog server/debugger.cpp
Date: Thu, 08 Feb 2007 19:32:00 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Bastiaan Jacques <bjacques>     07/02/08 19:32:00

Modified files:
        .              : ChangeLog 
        server         : debugger.cpp 

Log message:
        Remove unneeded casts.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2278&r2=1.2279
http://cvs.savannah.gnu.org/viewcvs/gnash/server/debugger.cpp?cvsroot=gnash&r1=1.5&r2=1.6

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2278
retrieving revision 1.2279
diff -u -b -r1.2278 -r1.2279
--- ChangeLog   8 Feb 2007 17:01:00 -0000       1.2278
+++ ChangeLog   8 Feb 2007 19:32:00 -0000       1.2279
@@ -1,3 +1,7 @@
+2007-02-08 Bastiaan Jacques <address@hidden>
+
+       * server/debugger.cpp: Simple cleanup: remove unneeded casts.
+
 2007-02-08 Sandro Santilli <address@hidden>
 
        * server/asobj/MovieClipLoader.cpp (loadClip): use the new

Index: server/debugger.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/debugger.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- server/debugger.cpp 7 Feb 2007 00:59:59 -0000       1.5
+++ server/debugger.cpp 8 Feb 2007 19:32:00 -0000       1.6
@@ -117,7 +117,7 @@
        return;
     }
     
-    if (_env == static_cast<as_environment *>(0)) {
+    if (!_env) {
        cerr << "WARNING: environment not set yet";
        cerr << "\nOnly watch point commands will work untill after you 
continue." << endl;
     }
@@ -423,7 +423,7 @@
 Debugger::dumpStackFrame(as_environment &env)
 {
 //    GNASH_REPORT_FUNCTION;    
-    if (_env == static_cast<as_environment *>(0)) {
+    if (!_env) {
        dbglogfile << "WARNING: environment not set in " << __PRETTY_FUNCTION__ 
<< endl;
        return;
     }
@@ -461,7 +461,7 @@
 Debugger::dumpLocalRegisters(as_environment &env)
 {
 //    GNASH_REPORT_FUNCTION;
-    if (_env == static_cast<as_environment *>(0)) {
+    if (!_env) {
        dbglogfile << "WARNING: environment not set in " << __PRETTY_FUNCTION__ 
<< endl;
        return;
     }
@@ -486,7 +486,7 @@
 Debugger::dumpGlobalRegisters(as_environment &env)
 {
 //    GNASH_REPORT_FUNCTION;  
-    if (_env == static_cast<as_environment *>(0)) {
+    if (!_env) {
        dbglogfile << "WARNING: environment not set in " << __PRETTY_FUNCTION__ 
<< endl;
        return;
     }
@@ -511,7 +511,7 @@
 Debugger::dumpLocalVariables(as_environment &env)
 {
 //    GNASH_REPORT_FUNCTION;
-    if (_env == static_cast<as_environment *>(0)) {
+    if (!_env) {
        dbglogfile << "WARNING: environment not set in " << __PRETTY_FUNCTION__ 
<< endl;
        return;
     }
@@ -542,7 +542,7 @@
            }
        }
     }
-    return static_cast<void *>(0);
+    return NULL; 
 }
 
 void




reply via email to

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