aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/tests/run-getkey.cpp
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2024-07-04 16:03:17 +0000
committerIngo Klöcker <[email protected]>2024-07-05 08:05:51 +0000
commit28542b14c4df40c7a54bfcf65d7c725bd99fb3e5 (patch)
treec3a8a3e96675b9f4e6265c3234aacdb31cfed626 /lang/cpp/tests/run-getkey.cpp
parentcpp: Add safer member function returning text describing an error (diff)
downloadgpgme-28542b14c4df40c7a54bfcf65d7c725bd99fb3e5.tar.gz
gpgme-28542b14c4df40c7a54bfcf65d7c725bd99fb3e5.zip
cpp: Deprecate Error::asString and update users
* lang/cpp/src/error.h (Error::asString): Mark as deprecated. * lang/cpp/src/context.cpp (operator<<), lang/cpp/src/editinteractor.cpp (edit_interactor_callback_impl), lang/cpp/tests/run-getkey.cpp (main), lang/cpp/tests/run-keylist.cpp (main), lang/cpp/tests/run-wkdlookup.cpp (main): Use Error::asStdString instead of Error::asString. -- GnuPG-bug-id: 7188
Diffstat (limited to 'lang/cpp/tests/run-getkey.cpp')
-rw-r--r--lang/cpp/tests/run-getkey.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/cpp/tests/run-getkey.cpp b/lang/cpp/tests/run-getkey.cpp
index c47da0b5..97d863e1 100644
--- a/lang/cpp/tests/run-getkey.cpp
+++ b/lang/cpp/tests/run-getkey.cpp
@@ -150,7 +150,7 @@ main (int argc, char **argv)
const GpgME::Key key = ctx->key (*argv, err, only_secret);
std::stringstream ss;
- ss << "Key " << key << " Err: " << err.asString() << "\n";
+ ss << "Key " << key << " Err: " << err.asStdString() << "\n";
std::cout << ss.str();