summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin/qcoffpeparser.cpp
diff options
context:
space:
mode:
authorArno Rehn <a.rehn@menlosystems.com>2022-09-23 16:31:47 +0200
committerArno Rehn <a.rehn@menlosystems.com>2022-09-27 20:59:21 +0200
commit7a7051b58f78a85cc55aece7b8691583c33ac47e (patch)
treee5c8bef3bac3a8e6bbd60818fc7e2af6e01ba96e /src/corelib/plugin/qcoffpeparser.cpp
parent38f8d531a26720cbf5574f06481c58ef4dad7e4b (diff)
QMetaType: Support custom unary converters with optional<To> return type
To indicate success of a conversion, the public API has previously only supported registering member functions of the form To (From::*)(bool *). When adding custom converters for types that cannot be modified, this is usually not a possibility. As an alternative, this patch adds support for std::optional in the UnaryFunction overload of QMetaType::registerConverter. If the returned optional has no value, the conversion is considered failed. Task-number: QTBUG-92902 Change-Id: Ibac52d2cb9b5a2457081b4bebb0def1f03e3c55d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/plugin/qcoffpeparser.cpp')
0 files changed, 0 insertions, 0 deletions