summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextmarkdownwriter_p.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-05-31 16:34:01 +0200
committerMarc Mutz <marc.mutz@qt.io>2023-06-02 20:32:11 +0000
commit8983225d3c20967d23b23d3071988a66df4e29f5 (patch)
treefeccea8001a39670a8fff376a350e9a269a780a4 /src/gui/text/qtextmarkdownwriter_p.h
parent79ae79d05c65019233cf9ae9e77ef59d90e75ac2 (diff)
QVariant: add rvalue overload of fromStdVariant()HEADdev
Extract Method fromStdVariantImpl() to share the otherwise more-or-less identical implementation between the two overloads. Don't use a constrained template version of fromStdVariantImpl() as fromStdVariant(), because the constraint would have to be very complex to continue allowing subclasses of std::variant to be passed. As a drive-by, mark the valueless_by_exception() path Q_UNLIKELY. [ChangeLog][QtCore][QVariant] Added overload of fromStdVariant() taking rvalue std::variant<>s. Fixes: QTBUG-114134 Change-Id: Ia1c7ae93ab421e6689dc9f2d8d0c2295b23cbbf6 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/gui/text/qtextmarkdownwriter_p.h')
0 files changed, 0 insertions, 0 deletions