fixed mix of raw and smart pointers

This commit is contained in:
Günter Obiltschnig 2020-01-09 18:50:50 +01:00
parent aa46e9b6e4
commit b7ad1f6c3a

View File

@ -59,8 +59,8 @@ void ChannelTest::testSplitter()
{
AutoPtr<TestChannel> pChannel = new TestChannel;
AutoPtr<SplitterChannel> pSplitter = new SplitterChannel;
pSplitter->addChannel(pChannel.get());
pSplitter->addChannel(pChannel.get());
pSplitter->addChannel(pChannel);
pSplitter->addChannel(pChannel);
Message msg;
pSplitter->log(msg);
assertTrue (pChannel->list().size() == 2);