summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qbytearray.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2021-12-13 12:26:42 +0100
committerMarc Mutz <marc.mutz@qt.io>2021-12-14 22:53:12 +0100
commitc4016f9564d603574c6dc16742cef43665e7a1b6 (patch)
tree43a8bdbc94742fc99af3871f20e68ed7bbe8899b /src/corelib/text/qbytearray.cpp
parent64cff16e0da3ae9928910a716d9e520ef1070a7b (diff)
QByteArray: sprinkle API with noexcept
Mark (const) data()/begin()/end()/size()/empty() and similar as noexcept. Move some trivial definitions into the class body. Pick-to: 6.3 Change-Id: I6f3ab792264347cdc6a476dacecf065f59f16ff9 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/text/qbytearray.cpp')
-rw-r--r--src/corelib/text/qbytearray.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qbytearray.cpp b/src/corelib/text/qbytearray.cpp
index 03fbe2b139..c45ae1f8e4 100644
--- a/src/corelib/text/qbytearray.cpp
+++ b/src/corelib/text/qbytearray.cpp
@@ -3520,7 +3520,7 @@ QByteArray QByteArray::rightJustified(qsizetype width, char fill, bool truncate)
return result;
}
-bool QByteArray::isNull() const
+bool QByteArray::isNull() const noexcept
{
return d->isNull();
}