summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin/quuid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/plugin/quuid.h')
-rw-r--r--src/corelib/plugin/quuid.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/corelib/plugin/quuid.h b/src/corelib/plugin/quuid.h
index b977446d97..3142062665 100644
--- a/src/corelib/plugin/quuid.h
+++ b/src/corelib/plugin/quuid.h
@@ -192,9 +192,10 @@ private:
static constexpr Id128Bytes bswap(Id128Bytes b)
{
// 128-bit byte swap
- b.data64[0] = qbswap(b.data64[0]);
- b.data64[1] = qbswap(b.data64[1]);
- qSwap(b.data64[0], b.data64[1]);
+ auto b0 = qbswap(b.data64[0]);
+ auto b1 = qbswap(b.data64[1]);
+ b.data64[0] = b1;
+ b.data64[1] = b0;
return b;
}
};