diff options
author | Ingo Klöcker <[email protected]> | 2024-07-04 16:03:17 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2024-07-05 08:05:51 +0000 |
commit | 28542b14c4df40c7a54bfcf65d7c725bd99fb3e5 (patch) | |
tree | c3a8a3e96675b9f4e6265c3234aacdb31cfed626 /lang/cpp/src/editinteractor.cpp | |
parent | cpp: Add safer member function returning text describing an error (diff) | |
download | gpgme-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/src/editinteractor.cpp')
-rw-r--r-- | lang/cpp/src/editinteractor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/cpp/src/editinteractor.cpp b/lang/cpp/src/editinteractor.cpp index 72ed92f7..84ddf398 100644 --- a/lang/cpp/src/editinteractor.cpp +++ b/lang/cpp/src/editinteractor.cpp @@ -138,7 +138,7 @@ public: if (writeAll(fd, result, len) != len) { err = Error::fromSystemError(); if (ei->debug) { - std::fprintf(ei->debug, "EditInteractor: Could not write to fd %d (%s)\n", fd, err.asString()); + std::fprintf(ei->debug, "EditInteractor: Could not write to fd %d (%s)\n", fd, err.asStdString().c_str()); } goto error; } @@ -147,7 +147,7 @@ public: if (writeAll(fd, "\n", 1) != 1) { err = Error::fromSystemError(); if (ei->debug) { - std::fprintf(ei->debug, "EditInteractor: Could not write to fd %d (%s)\n", fd, err.asString()); + std::fprintf(ei->debug, "EditInteractor: Could not write to fd %d (%s)\n", fd, err.asStdString().c_str()); } goto error; } |