replace more assertions to get proper log messages
authorghost <andreas.monzner@multimedia-labs.de>
Mon, 27 Apr 2009 20:57:34 +0000 (22:57 +0200)
committerghost <andreas.monzner@multimedia-labs.de>
Mon, 27 Apr 2009 20:57:34 +0000 (22:57 +0200)
lib/base/smartptr.h
lib/dvb/esection.h
lib/gdi/font.h

index 782ff48..ac6b9eb 100644 (file)
@@ -56,7 +56,7 @@ public:
        
 #ifndef SWIG
        T* grabRef() { if (!ptr) return 0; ptr->AddRef(); return ptr; }
-       T* &ptrref() { assert(!ptr); return ptr; }
+       T* &ptrref() { ASSERT(!ptr); return ptr; }
 #endif
        T* operator->() const { ptrAssert(ptr); return ptr; }
        operator T*() const { return this->ptr; }
@@ -135,7 +135,7 @@ public:
        
 #ifndef SWIG
        T* grabRef() { if (!ptr) return 0; ptr->AddRef(); ptr->AddUse(); return ptr; }
-       T* &ptrref() { assert(!ptr); return ptr; }
+       T* &ptrref() { ASSERT(!ptr); return ptr; }
 #endif
        T* operator->() const { ptrAssert(ptr); return ptr; }
        operator T*() const { return this->ptr; }
index 5720d5d..2bb17a9 100644 (file)
@@ -189,7 +189,7 @@ public:
                next=0;
                first=0;
                
-               assert(current->ready);
+               ASSERT(current->ready);
                        
                /*emit*/ tableReady(0);
                
index 41d51dd..2643fda 100644 (file)
@@ -160,22 +160,22 @@ public:
 
        const eRect& getGlyphBBox(int num) const
        {
-               assert(num >= 0);
-               assert(num < (int)glyphs.size());
+               ASSERT(num >= 0);
+               ASSERT(num < (int)glyphs.size());
                return glyphs[num].bbox;
        }
        
        void setGlyphFlag(int g, int f)
        {
-               assert(g >= 0);
-               assert(g < (int)glyphs.size());
+               ASSERT(g >= 0);
+               ASSERT(g < (int)glyphs.size());
                glyphs[g].flags |= f;
        }
 
        void clearGlyphFlag(int g, int f)
        {
-               assert(g >= 0);
-               assert(g < (int)glyphs.size());
+               ASSERT(g >= 0);
+               ASSERT(g < (int)glyphs.size());
                glyphs[g].flags |= f;
        }
 };