From 430e644a4a647c256ae51682d7230c35d954073e Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 6 Dec 2007 18:22:17 +0000 Subject: Removed redundant TimerA, use intrusive_ptr for Timer. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@601803 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/TimerTest.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cpp/src/tests/TimerTest.cpp') diff --git a/cpp/src/tests/TimerTest.cpp b/cpp/src/tests/TimerTest.cpp index 3f2a1c57ec..864ddaf702 100644 --- a/cpp/src/tests/TimerTest.cpp +++ b/cpp/src/tests/TimerTest.cpp @@ -30,6 +30,7 @@ using namespace qpid::broker; using namespace qpid::sys; +using qpid::intrusive_ptr; using boost::dynamic_pointer_cast; class TimerTest : public CppUnit::TestCase @@ -104,10 +105,10 @@ public: { Counter counter; Timer timer; - TestTask::shared_ptr task1(new TestTask(Duration(3 * TIME_SEC), counter)); - TestTask::shared_ptr task2(new TestTask(Duration(1 * TIME_SEC), counter)); - TestTask::shared_ptr task3(new TestTask(Duration(4 * TIME_SEC), counter)); - TestTask::shared_ptr task4(new TestTask(Duration(2 * TIME_SEC), counter)); + intrusive_ptr task1(new TestTask(Duration(3 * TIME_SEC), counter)); + intrusive_ptr task2(new TestTask(Duration(1 * TIME_SEC), counter)); + intrusive_ptr task3(new TestTask(Duration(4 * TIME_SEC), counter)); + intrusive_ptr task4(new TestTask(Duration(2 * TIME_SEC), counter)); timer.add(task1); timer.add(task2); -- cgit v1.2.1