summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/TopicExchangeTest.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-03-25 13:34:44 +0000
committerAlan Conway <aconway@apache.org>2008-03-25 13:34:44 +0000
commit8faa774026ade012084caae58ee07d334f37b9e4 (patch)
treef7794737727de8785b0689a12a5ce1d7a1b60ff4 /qpid/cpp/src/tests/TopicExchangeTest.cpp
parent3130e493f12700b018cd0a3286802f1c0d3a602d (diff)
downloadqpid-python-8faa774026ade012084caae58ee07d334f37b9e4.tar.gz
Fix compile errors/warnings with gcc 4.3
- added missing #includes that were implicitly included via old headers. - add namespace-qualifiers to fix "changes meaning of name" warnings. - ./qpid/ptr_map.h:51: fixed "qualified return value" warning. - use const char* for "conversion from string constant to ‘char*’" warnings Applied patch from https://issues.apache.org/jira/browse/QPID-869 remove depenency on boost/date_time, causes warnings with gcc 4.3. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@640806 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/TopicExchangeTest.cpp')
-rw-r--r--qpid/cpp/src/tests/TopicExchangeTest.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/qpid/cpp/src/tests/TopicExchangeTest.cpp b/qpid/cpp/src/tests/TopicExchangeTest.cpp
index 9e320b76f9..adb937179f 100644
--- a/qpid/cpp/src/tests/TopicExchangeTest.cpp
+++ b/qpid/cpp/src/tests/TopicExchangeTest.cpp
@@ -21,7 +21,7 @@
using namespace qpid::broker;
-Tokens makeTokens(char** begin, char** end)
+Tokens makeTokens(const char** begin, const char** end)
{
Tokens t;
t.insert(t.end(), begin, end);
@@ -57,34 +57,34 @@ class TokensTest : public CppUnit::TestCase
void testTokens()
{
Tokens tokens("hello.world");
- char* expect[] = {"hello", "world"};
+ const char* expect[] = {"hello", "world"};
CPPUNIT_ASSERT_EQUAL(TOKENS(expect), tokens);
tokens = "a.b.c";
- char* expect2[] = { "a", "b", "c" };
+ const char* expect2[] = { "a", "b", "c" };
CPPUNIT_ASSERT_EQUAL(TOKENS(expect2), tokens);
tokens = "";
CPPUNIT_ASSERT(tokens.empty());
tokens = "x";
- char* expect3[] = { "x" };
+ const char* expect3[] = { "x" };
CPPUNIT_ASSERT_EQUAL(TOKENS(expect3), tokens);
tokens = (".x");
- char* expect4[] = { "", "x" };
+ const char* expect4[] = { "", "x" };
CPPUNIT_ASSERT_EQUAL(TOKENS(expect4), tokens);
tokens = ("x.");
- char* expect5[] = { "x", "" };
+ const char* expect5[] = { "x", "" };
CPPUNIT_ASSERT_EQUAL(TOKENS(expect5), tokens);
tokens = (".");
- char* expect6[] = { "", "" };
+ const char* expect6[] = { "", "" };
CPPUNIT_ASSERT_EQUAL(TOKENS(expect6), tokens);
tokens = ("..");
- char* expect7[] = { "", "", "" };
+ const char* expect7[] = { "", "", "" };
CPPUNIT_ASSERT_EQUAL(TOKENS(expect7), tokens);
}