summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qsystemerror.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-08-19 19:11:37 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-09-06 18:31:43 +0200
commit68198de4dbe71ae97dc733606871f51bde804c1e (patch)
treedf68d428265f876367c7cd54d5e2c14f007c1964 /src/corelib/kernel/qsystemerror.cpp
parentd3ff95dcb84861e8f42b480910d822b4ca8715b1 (diff)
Use C++17 [[maybe_unused]]
In some places needs to be ordered before const/constexpr though. Change-Id: I57a521ac0ad22b5a018761c4d52befbef69d64c0 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qsystemerror.cpp')
-rw-r--r--src/corelib/kernel/qsystemerror.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/kernel/qsystemerror.cpp b/src/corelib/kernel/qsystemerror.cpp
index 6a250f5f3a..619f94c476 100644
--- a/src/corelib/kernel/qsystemerror.cpp
+++ b/src/corelib/kernel/qsystemerror.cpp
@@ -61,11 +61,11 @@ namespace {
// version in portable code. However, it's impossible to do that if
// _GNU_SOURCE is defined so we use C++ overloading to decide what to do
// depending on the return type
- static inline Q_DECL_UNUSED QString fromstrerror_helper(int, const QByteArray &buf)
+ Q_DECL_UNUSED static inline QString fromstrerror_helper(int, const QByteArray &buf)
{
return QString::fromLocal8Bit(buf);
}
- static inline Q_DECL_UNUSED QString fromstrerror_helper(const char *str, const QByteArray &)
+ Q_DECL_UNUSED static inline QString fromstrerror_helper(const char *str, const QByteArray &)
{
return QString::fromLocal8Bit(str);
}