gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog libbase/smart_ptr.h [release_0_7_2]


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog libbase/smart_ptr.h [release_0_7_2]
Date: Wed, 08 Nov 2006 10:08:22 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Branch:         release_0_7_2
Changes by:     Sandro Santilli <strk>  06/11/08 10:08:22

Modified files:
        .              : ChangeLog 
        libbase        : smart_ptr.h 

Log message:
                * libbase/smart_ptr.h: *fixed* invariant testing (well, at
                  least we know that it works fine)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release_0_7_2&r1=1.1412.2.119&r2=1.1412.2.120
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/smart_ptr.h?cvsroot=gnash&only_with_tag=release_0_7_2&r1=1.11.2.2&r2=1.11.2.3

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1412.2.119
retrieving revision 1.1412.2.120
diff -u -b -r1.1412.2.119 -r1.1412.2.120
--- ChangeLog   8 Nov 2006 10:04:14 -0000       1.1412.2.119
+++ ChangeLog   8 Nov 2006 10:08:22 -0000       1.1412.2.120
@@ -1,5 +1,10 @@
 2006-11-08 Sandro Santilli <address@hidden>
 
+       * libbase/smart_ptr.h: *fixed* invariant testing (well, at
+         least we know that it works fine)
+
+2006-11-08 Sandro Santilli <address@hidden>
+
        * testsuite/libbase/smart_ptrTest.cpp: test static initialization
          of smart_ptr (segfaults!!)
        * libbase/smart_ptr.h: added invariant testing 

Index: libbase/smart_ptr.h
===================================================================
RCS file: /sources/gnash/gnash/libbase/smart_ptr.h,v
retrieving revision 1.11.2.2
retrieving revision 1.11.2.3
diff -u -b -r1.11.2.2 -r1.11.2.3
--- libbase/smart_ptr.h 8 Nov 2006 09:37:46 -0000       1.11.2.2
+++ libbase/smart_ptr.h 8 Nov 2006 10:08:22 -0000       1.11.2.3
@@ -9,7 +9,7 @@
 // although the nice thing about templates is that no particular
 // ref-counted class is mandated.
 
-/* $Id: smart_ptr.h,v 1.11.2.2 2006/11/08 09:37:46 strk Exp $ */
+/* $Id: smart_ptr.h,v 1.11.2.3 2006/11/08 10:08:22 strk Exp $ */
 
 #ifndef SMART_PTR_H
 #define SMART_PTR_H
@@ -152,7 +152,7 @@
                // If we have a pointer, check that it's refcount
                // is greater then 0, as if it is not that means
                // that someone deleted it
-               assert( m_ptr != NULL || m_ptr->get_ref_count() > 0 );
+               assert( m_ptr == NULL || m_ptr->get_ref_count() > 0 );
        }
 
 private:




reply via email to

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