Rename internal class to stop the wrong destructor from being called
This commit is contained in:
parent
7262e16216
commit
2ef5cefa6b
@ -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 ();
|
||||||
|
Loading…
Reference in New Issue
Block a user