summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qstringalgorithms_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/text/qstringalgorithms_p.h')
-rw-r--r--src/corelib/text/qstringalgorithms_p.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/text/qstringalgorithms_p.h b/src/corelib/text/qstringalgorithms_p.h
index 513e2b8cbc..0b8118a858 100644
--- a/src/corelib/text/qstringalgorithms_p.h
+++ b/src/corelib/text/qstringalgorithms_p.h
@@ -47,8 +47,7 @@ template <typename StringType> struct QStringAlgorithms
static inline StringType trimmed_helper_inplace(const NakedStringType &, const Char *, const Char *)
{
// can't happen
- Q_UNREACHABLE();
- return StringType();
+ Q_UNREACHABLE_RETURN(StringType());
}
static inline void trimmed_helper_positions(const Char *&begin, const Char *&end)