summaryrefslogtreecommitdiff
path: root/contrib/llvm-project/lldb/source/Interpreter/Property.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/lldb/source/Interpreter/Property.cpp')
-rw-r--r--contrib/llvm-project/lldb/source/Interpreter/Property.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/llvm-project/lldb/source/Interpreter/Property.cpp b/contrib/llvm-project/lldb/source/Interpreter/Property.cpp
index 78209311e2e5..a81098373c25 100644
--- a/contrib/llvm-project/lldb/source/Interpreter/Property.cpp
+++ b/contrib/llvm-project/lldb/source/Interpreter/Property.cpp
@@ -292,8 +292,7 @@ void Property::DumpDescription(CommandInterpreter &interpreter, Stream &strm,
}
}
-void Property::SetValueChangedCallback(OptionValueChangedCallback callback,
- void *baton) {
+void Property::SetValueChangedCallback(std::function<void()> callback) {
if (m_value_sp)
- m_value_sp->SetValueChangedCallback(callback, baton);
+ m_value_sp->SetValueChangedCallback(std::move(callback));
}