From 28542b14c4df40c7a54bfcf65d7c725bd99fb3e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Thu, 4 Jul 2024 18:03:17 +0200 Subject: 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 --- lang/cpp/tests/run-keylist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lang/cpp/tests/run-keylist.cpp') diff --git a/lang/cpp/tests/run-keylist.cpp b/lang/cpp/tests/run-keylist.cpp index b46a815a..6581567c 100644 --- a/lang/cpp/tests/run-keylist.cpp +++ b/lang/cpp/tests/run-keylist.cpp @@ -153,7 +153,7 @@ main (int argc, char **argv) } Error err = ctx->startKeyListing (*argv, only_secret); if (err) { - std::cout << "Error: " << err.asString() << "\n"; + std::cout << "Error: " << err.asStdString() << "\n"; return -1; } GpgME::Key key; -- cgit v1.2.3