13
0

Rename internal class to stop the wrong destructor from being called

This commit is contained in:
Tim Mayberry 2014-06-25 22:41:31 +10:00 committed by Paul Davis
parent 7262e16216
commit 2ef5cefa6b

View File

@ -64,11 +64,11 @@ SignalsTest::testDestruction ()
CPPUNIT_ASSERT (true); CPPUNIT_ASSERT (true);
} }
class Receiver : public PBD::ScopedConnectionList class AReceiver : public PBD::ScopedConnectionList
{ {
public: public:
Receiver (Emitter* e) { AReceiver (Emitter* e) {
e->Fred.connect_same_thread (*this, boost::bind (&Receiver::receiver, this)); e->Fred.connect_same_thread (*this, boost::bind (&AReceiver::receiver, this));
} }
void receiver () { void receiver () {
@ -80,7 +80,7 @@ void
SignalsTest::testScopedConnectionList () SignalsTest::testScopedConnectionList ()
{ {
Emitter* e = new Emitter; Emitter* e = new Emitter;
Receiver* r = new Receiver (e); AReceiver* r = new AReceiver (e);
N = 0; N = 0;
e->emit (); e->emit ();