diff options
author | Marc Mutz <[email protected]> | 2025-07-03 10:57:41 +0200 |
---|---|---|
committer | Marc Mutz <[email protected]> | 2025-07-03 18:06:27 +0200 |
commit | bddc78c796dd9e4dd843578e77ee325b9e10a055 (patch) | |
tree | 677e83addb2da473c76ec64e521a2d78c2004df2 | |
parent | 94700f56368bdf2bf9016f87788e0a80a84954b6 (diff) |
Say that this operator *move-*assigns, and that, since it's
implemented as PURE_SWAP, leaves the moved-from object in a valid, but
unspecified state (the same as objects of std types).
Partially reverts be4db73231611d27522aab41840de9daafae9079, which
incorrectly changed "move-assign" to "assign".
Pick-to: 6.10 6.9 6.8 6.5
Change-Id: I0c314b598ddd94acb93bbe08c4f339d6db750195
Reviewed-by: Ivan Solovev <[email protected]>
-rw-r--r-- | src/corelib/io/qstorageinfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/io/qstorageinfo.cpp b/src/corelib/io/qstorageinfo.cpp index 6f55397eed9..ee277cd13ca 100644 --- a/src/corelib/io/qstorageinfo.cpp +++ b/src/corelib/io/qstorageinfo.cpp @@ -110,7 +110,9 @@ QStorageInfo &QStorageInfo::operator=(const QStorageInfo &other) /*! \fn QStorageInfo &QStorageInfo::operator=(QStorageInfo &&other) - Assigns \a other to this QStorageInfo instance. + Move-assigns \a other to this QStorageInfo instance. + + The moved-from object \a other is placed in a valid, but unspecified state. */ /*! |