diff options
author | Ingo Klöcker <[email protected]> | 2023-08-15 09:56:40 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2023-08-15 09:56:40 +0000 |
commit | c3171d0cf1a249618f0763fe141ab84d8a4be240 (patch) | |
tree | adcd7fd1fb94c4998c782a657e37895210c06011 /lang/qt/src/util.h | |
parent | cpp: Remove unused include (diff) | |
download | gpgme-c3171d0cf1a249618f0763fe141ab84d8a4be240.tar.gz gpgme-c3171d0cf1a249618f0763fe141ab84d8a4be240.zip |
qt: Make toLogString helper public
* lang/qt/src/util.h: Move toLogString ...
* lang/qt/src/debug.h: ... here.
* lang/qt/tests/run-importjob.cpp (main): Use toLogString.
--
This allows using the helper in dependent projects without duplicating
it everywhere.
GnuPG-bug-id: 6584
Diffstat (limited to 'lang/qt/src/util.h')
-rw-r--r-- | lang/qt/src/util.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lang/qt/src/util.h b/lang/qt/src/util.h index 475d477b..626de3df 100644 --- a/lang/qt/src/util.h +++ b/lang/qt/src/util.h @@ -38,7 +38,6 @@ #include <gpgme.h> -#include <sstream> #include <string> #include <vector> @@ -56,12 +55,4 @@ std::vector<std::string> toStrings(const QStringList &l); QStringList toFingerprints(const std::vector<GpgME::Key> &keys); -template<class Result> -std::string toLogString(const Result &result) -{ - std::stringstream stream; - stream << result; - return stream.str(); -} - #endif // __QGPGME_UTIL_H__ |