From 093138972ad7500cda362b879de25ba832e22c3d Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Fri, 16 Apr 2021 21:28:06 +0100 Subject: [PATCH] Enable C++17 --- mkspecs/features/common_pre.prf | 2 +- src/xswiftbus/service.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mkspecs/features/common_pre.prf b/mkspecs/features/common_pre.prf index b4293a808..d10a3ff13 100644 --- a/mkspecs/features/common_pre.prf +++ b/mkspecs/features/common_pre.prf @@ -32,7 +32,7 @@ include(version.pri) CONFIG += qt CONFIG += warn_on -CONFIG += c++14 +CONFIG += c++17 ################################ # Detect 32 or 64 bit diff --git a/src/xswiftbus/service.cpp b/src/xswiftbus/service.cpp index 8e06a03e7..aa71cecca 100644 --- a/src/xswiftbus/service.cpp +++ b/src/xswiftbus/service.cpp @@ -148,7 +148,7 @@ namespace XSwiftBus static const CMessage::string ellipsis = u8"\u2026"; const unsigned lineLength = m_messages.maxLineLength() - 1; - using U8It = Utf8Iterator; + using U8It = Utf8Iterator; U8It begin(text.begin(), text.end()); auto characters = std::distance(begin, U8It(text.end(), text.end())); std::vector wrappedLines;