mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 00:46:03 +01:00
fixed mix of raw and smart pointers
This commit is contained in:
parent
aa46e9b6e4
commit
b7ad1f6c3a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user