From 4a89e84d7da4b87fd99c83eb6989186fe1f72137 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sun, 30 Jul 2006 16:14:16 +0000 Subject: [PATCH] Fixed const-correctness bugs. [SVN r34785] --- test/object_cache/object_cache_test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/object_cache/object_cache_test.cpp b/test/object_cache/object_cache_test.cpp index 0f0d6521..40f55db4 100644 --- a/test/object_cache/object_cache_test.cpp +++ b/test/object_cache/object_cache_test.cpp @@ -48,7 +48,7 @@ int test_main(int /*argc*/, char * /*argv*/[]) int i; for(i = 0; i < 20; ++i) { - boost::shared_ptr p = boost::object_cache::get(i, max_cache_size); + boost::shared_ptr p = boost::object_cache::get(i, max_cache_size); BOOST_CHECK(p->value() == i); p = boost::object_cache::get(i, max_cache_size); BOOST_CHECK(p->value() == i); @@ -63,7 +63,7 @@ int test_main(int /*argc*/, char * /*argv*/[]) { for(i = 20 - max_cache_size; i < 20; ++i) { - boost::shared_ptr p = boost::object_cache::get(i, max_cache_size); + boost::shared_ptr p = boost::object_cache::get(i, max_cache_size); BOOST_CHECK(p->value() == i); p = boost::object_cache::get(i, max_cache_size); BOOST_CHECK(p->value() == i); @@ -75,3 +75,4 @@ int test_main(int /*argc*/, char * /*argv*/[]) #include +