summaryrefslogtreecommitdiffstats
path: root/src/corelib/serialization/qcborstream.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2018-07-08 19:28:09 -0700
committerThiago Macieira <thiago.macieira@intel.com>2018-07-14 04:20:38 +0000
commit1016c0af740ebdf4b7dccfe5db5d63f07e4fee00 (patch)
tree84d28a511ad47f7011bbfc16bf9185b244f1166c /src/corelib/serialization/qcborstream.cpp
parent503646a3317c1041fb5ded803a3935ef330ea036 (diff)
CBOR: Use "noexcept" directly
All supported compilers support it. Doing this just for the new API. We should do it throughout Qt, but only if it won't interfere with the header review. Change-Id: Id59bdd8f1a804b809e22fffd153f9254688e5152 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/serialization/qcborstream.cpp')
-rw-r--r--src/corelib/serialization/qcborstream.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/serialization/qcborstream.cpp b/src/corelib/serialization/qcborstream.cpp
index f4b96646e4..8b7a1ee0c3 100644
--- a/src/corelib/serialization/qcborstream.cpp
+++ b/src/corelib/serialization/qcborstream.cpp
@@ -2037,7 +2037,7 @@ public:
}
}
- void handleError(CborError err) Q_DECL_NOTHROW
+ void handleError(CborError err) noexcept
{
Q_ASSERT(err);
@@ -2411,7 +2411,7 @@ QCborStreamReader::Type QCborStreamReader::parentContainerType() const
\sa parentContainerType(), containerDepth(), leaveContainer()
*/
-bool QCborStreamReader::hasNext() const Q_DECL_NOTHROW
+bool QCborStreamReader::hasNext() const noexcept
{
return cbor_value_is_valid(&d->currentElement) &&
!cbor_value_at_end(&d->currentElement);
@@ -2487,7 +2487,7 @@ bool QCborStreamReader::next(int maxRecursion)
\sa length(), QCborStreamWriter::startArray(), QCborStreamWriter::startMap()
*/
-bool QCborStreamReader::isLengthKnown() const Q_DECL_NOTHROW
+bool QCborStreamReader::isLengthKnown() const noexcept
{
return cbor_value_is_length_known(&d->currentElement);
}