aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-11-24 12:59:10 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-11-24 12:59:10 +0000
commit589ab13f8d23fce8363a03656d270b617e603829 (patch)
tree4b8c68f0c1cacaf8eb0aebef3a8941b8c0ee5a7f
parent3e2f13c7052267680696ed192a3789e756746c08 (diff)
Use c_str instead of data.
-rw-r--r--documentapi/test/crosslanguagefiles/6.221-cpp-GetBucketListMessage.datbin29 -> 29 bytes
-rw-r--r--messagebus_test/src/tests/speed/cpp-client.cpp3
2 files changed, 1 insertions, 2 deletions
diff --git a/documentapi/test/crosslanguagefiles/6.221-cpp-GetBucketListMessage.dat b/documentapi/test/crosslanguagefiles/6.221-cpp-GetBucketListMessage.dat
index c42c61460ac..591e55e5849 100644
--- a/documentapi/test/crosslanguagefiles/6.221-cpp-GetBucketListMessage.dat
+++ b/documentapi/test/crosslanguagefiles/6.221-cpp-GetBucketListMessage.dat
Binary files differ
diff --git a/messagebus_test/src/tests/speed/cpp-client.cpp b/messagebus_test/src/tests/speed/cpp-client.cpp
index d7e120680d4..2c20b35c597 100644
--- a/messagebus_test/src/tests/speed/cpp-client.cpp
+++ b/messagebus_test/src/tests/speed/cpp-client.cpp
@@ -7,7 +7,6 @@
#include <vespa/messagebus/testlib/simplemessage.h>
#include <vespa/messagebus/testlib/simpleprotocol.h>
#include <vespa/messagebus/testlib/simplereply.h>
-#include <vespa/messagebus/error.h>
#include <vespa/vespalib/util/time.h>
#include <thread>
#include <vespa/fastos/app.h>
@@ -77,7 +76,7 @@ Client::handleReply(Reply::UP reply) {
for (uint32_t i = 0; i < reply->getNumErrors(); ++i) {
fprintf(stderr, "ERR[%d]: code=%d, msg=%s\n", i,
reply->getError(i).getCode(),
- reply->getError(i).getMessage().data());
+ reply->getError(i).getMessage().c_str());
}
std::lock_guard guard(_lock);
++_failCnt;