aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/utils/CommonUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/utils/CommonUtils.cpp')
-rw-r--r--src/core/utils/CommonUtils.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/utils/CommonUtils.cpp b/src/core/utils/CommonUtils.cpp
index 0e6eaf64..0b182241 100644
--- a/src/core/utils/CommonUtils.cpp
+++ b/src/core/utils/CommonUtils.cpp
@@ -28,17 +28,15 @@
#include "CommonUtils.h"
-#include <boost/algorithm/string.hpp>
-#include <boost/lexical_cast.hpp>
-
namespace GpgFrontend {
auto BeautifyFingerprint(QString fingerprint) -> QString {
auto len = fingerprint.size();
- QTextStream out;
+ QString buffer;
+ QTextStream out(&buffer);
decltype(len) count = 0;
while (count < len) {
- if ((count != 0U) && !(count % 5)) out << " ";
+ if ((count != 0U) && ((count % 5) == 0)) out << " ";
out << fingerprint[count];
count++;
}