diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2009-06-05 15:38:09 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2009-06-05 15:38:09 +0000 |
| commit | 77e4d6c326474ed88b1ada739bee25ad065fbf57 (patch) | |
| tree | 26d71bbf156f71b10f41590eeb01ec23ebff7a5a /qpid/cpp/src/tests/test_store.cpp | |
| parent | 057c39fba3da4ef6707c63407d04c4050822e2d5 (diff) | |
| download | qpid-python-77e4d6c326474ed88b1ada739bee25ad065fbf57.tar.gz | |
Patch from Michael Goulish - QPID-1891 "fix declaration problems with boost 1_33_1", but with minor additional fixes.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@782051 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/test_store.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/test_store.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qpid/cpp/src/tests/test_store.cpp b/qpid/cpp/src/tests/test_store.cpp index e5c3522852..90503818ed 100644 --- a/qpid/cpp/src/tests/test_store.cpp +++ b/qpid/cpp/src/tests/test_store.cpp @@ -37,7 +37,6 @@ #include "qpid/log/Statement.h" #include "qpid/Plugin.h" #include "qpid/Options.h" -#include <boost/algorithm/string.hpp> #include <boost/cast.hpp> #include <boost/lexical_cast.hpp> @@ -85,7 +84,7 @@ class TestStore : public NullMessageStore { // Check the message for special instructions. size_t i = string::npos; size_t j = string::npos; - if (starts_with(data, TEST_STORE_DO) + if (strncmp(data.c_str(), TEST_STORE_DO.c_str(), strlen(TEST_STORE_DO.c_str())) == 0 && (i = data.find(name+"[")) != string::npos && (j = data.find("]", i)) != string::npos) { @@ -102,7 +101,7 @@ class TestStore : public NullMessageStore { QPID_LOG(critical, "TestStore " << name << " forcing process exit for: " << data); exit(0); } - else if (starts_with(action, ASYNC)) { + else if (strncmp(action.c_str(), ASYNC.c_str(), strlen(ASYNC.c_str())) == 0) { std::string delayStr(action.substr(ASYNC.size())); int delay = lexical_cast<int>(delayStr); threads.push_back(Thread(*new Completer(msg, delay))); |
