gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/libbase log.cpp


From: Vitaly Alexeev
Subject: [Gnash-commit] gnash/libbase log.cpp
Date: Tue, 25 Jul 2006 16:55:21 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Vitaly Alexeev <alexeev>        06/07/25 16:55:21

Modified files:
        libbase        : log.cpp 

Log message:
        Small optimization is done

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/log.cpp?cvsroot=gnash&r1=1.13&r2=1.14

Patches:
Index: log.cpp
===================================================================
RCS file: /sources/gnash/gnash/libbase/log.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- log.cpp     12 Jun 2006 17:13:20 -0000      1.13
+++ log.cpp     25 Jul 2006 16:55:21 -0000      1.14
@@ -195,21 +195,22 @@
 void
 log_action(const char* fmt, ...)
 {
+       bool stamp = dbglogfile.getStamp();
+       dbglogfile.setStamp(false);
+       if (dbglogfile.getActionDump())
+       {
     va_list ap;
     char tmp[BUFFER_SIZE];
 
     va_start (ap, fmt);
     vsnprintf (tmp, BUFFER_SIZE, fmt, ap);
-    tmp[BUFFER_SIZE-1] = '\0';
+               tmp[BUFFER_SIZE - 1] = '\0';
+    va_end (ap);    
 
-    bool stamp = dbglogfile.getStamp();
-    dbglogfile.setStamp(false);
-    if (dbglogfile.getActionDump()) {
        dbglogfile << tmp << endl;
     }
     dbglogfile.setStamp(stamp);
     
-    va_end (ap);    
 }
 
 void




reply via email to

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