diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-02 10:47:47 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-03 11:58:08 +0200 |
commit | c82f73666d87549e5884ddcd253ec3561d840b9b (patch) | |
tree | 96eff624e0add180490d014abce92fccf9542f5b /src/corelib/kernel/qsystemerror.cpp | |
parent | 889d40ebe2d9d0e92caea2749608720f7c088173 (diff) |
Replace Q_DECL_UNUSED with [[maybe_unused]]
Use C++17 attribute directly
Change-Id: Id853e7a5117065e4adb549f81303c1820fe198ce
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qsystemerror.cpp')
-rw-r--r-- | src/corelib/kernel/qsystemerror.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/kernel/qsystemerror.cpp b/src/corelib/kernel/qsystemerror.cpp index 619f94c476..a2df9dee93 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 - Q_DECL_UNUSED static inline QString fromstrerror_helper(int, const QByteArray &buf) + [[maybe_unused]] static inline QString fromstrerror_helper(int, const QByteArray &buf) { return QString::fromLocal8Bit(buf); } - Q_DECL_UNUSED static inline QString fromstrerror_helper(const char *str, const QByteArray &) + [[maybe_unused]] static inline QString fromstrerror_helper(const char *str, const QByteArray &) { return QString::fromLocal8Bit(str); } |