diff options
author | Alan Conway <aconway@apache.org> | 2007-12-06 18:22:17 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-12-06 18:22:17 +0000 |
commit | 1a2a51080b946ba57c6b7b774cd6eb36a756e421 (patch) | |
tree | 1c55cd5b640ae911eaa8733c5584ccc8e5bb7c6a /qpid/cpp/src/tests/TimerTest.cpp | |
parent | 38df606cedd41d1dc5fc561891508b8fd5966674 (diff) | |
download | qpid-python-1a2a51080b946ba57c6b7b774cd6eb36a756e421.tar.gz |
Removed redundant TimerA, use intrusive_ptr for Timer.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@601803 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/TimerTest.cpp')
-rw-r--r-- | qpid/cpp/src/tests/TimerTest.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/qpid/cpp/src/tests/TimerTest.cpp b/qpid/cpp/src/tests/TimerTest.cpp index 3f2a1c57ec..864ddaf702 100644 --- a/qpid/cpp/src/tests/TimerTest.cpp +++ b/qpid/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<TestTask> task1(new TestTask(Duration(3 * TIME_SEC), counter)); + intrusive_ptr<TestTask> task2(new TestTask(Duration(1 * TIME_SEC), counter)); + intrusive_ptr<TestTask> task3(new TestTask(Duration(4 * TIME_SEC), counter)); + intrusive_ptr<TestTask> task4(new TestTask(Duration(2 * TIME_SEC), counter)); timer.add(task1); timer.add(task2); |