From 0b51d46117f7b6f7fd8e4ee614cbf6265b4e7bf6 Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 03 Feb 2003 11:05:53 +0000 Subject: - link in libstdc++ - removed std::vector custom allocator hack for gcc2. we always pull in libstdc++ now. --- diff --git a/noncore/multimedia/opieplayer2/mediawidget.h b/noncore/multimedia/opieplayer2/mediawidget.h index 45c46ea..8c3a467 100644 --- a/noncore/multimedia/opieplayer2/mediawidget.h +++ b/noncore/multimedia/opieplayer2/mediawidget.h @@ -32,17 +32,6 @@ #include #include -namespace -{ - struct simpleAndStupidAllocator - { - static void *allocate( size_t amount ) - { return ::operator new( amount ); } - static void deallocate( void *p, size_t ) - { ::operator delete( p ); } - }; -} - class Skin; class MediaWidget : public QWidget @@ -65,13 +54,7 @@ public: QPixmap pixUp; QPixmap pixDown; }; -#if defined( _CC_GNU_ ) - // use that allocator to avoid the default allocator that on gcc2 requires libstdc++ because - // in the BAD_ALLOC macro it uses std::cerr and friends :-( - typedef std::vector > ButtonVector; -#else typedef std::vector