MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / wrapValueCallback

Function wrapValueCallback

pcsx2-qt/AsyncDialogs.cpp:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10template <typename Value>
11static std::function<void(std::optional<Value>)> wrapValueCallback(std::function<void(Value)> callback)
12{
13 return [callback = std::move(callback)](std::optional<Value> input) {
14 if (input.has_value())
15 callback(std::move(*input));
16 };
17}
18
19void AsyncDialogs::getText(
20 QWidget* parent,

Callers 5

getTextMethod · 0.85
getMultiLineTextMethod · 0.85
getItemMethod · 0.85
getIntMethod · 0.85
getDoubleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected