From c3171d0cf1a249618f0763fe141ab84d8a4be240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Tue, 15 Aug 2023 11:56:40 +0200 Subject: 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 --- lang/qt/src/util.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'lang/qt/src/util.h') 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 -#include #include #include @@ -56,12 +55,4 @@ std::vector toStrings(const QStringList &l); QStringList toFingerprints(const std::vector &keys); -template -std::string toLogString(const Result &result) -{ - std::stringstream stream; - stream << result; - return stream.str(); -} - #endif // __QGPGME_UTIL_H__ -- cgit v1.2.3