File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -98,17 +98,19 @@ class AsyncIndexDelegate : public IndexSystemDelegate {
98
98
OutOfDateFileTriggerRef trigger,
99
99
bool synchronous) override {
100
100
if (synchronous) {
101
- Queue.dispatchSync ([&]{
102
- for (auto &other : Others)
103
- other->unitIsOutOfDate (std::move (unitInfo), trigger, true );
104
- });
101
+ Queue.dispatchSync (
102
+ [this , unitInfo = std::move (unitInfo), trigger = std::move (trigger)] {
103
+ for (auto &other : Others)
104
+ other->unitIsOutOfDate (unitInfo, trigger, /* synchronous*/ true );
105
+ });
105
106
return ;
106
107
}
107
108
108
- Queue.dispatch ([=]{
109
- for (auto &other : Others)
110
- other->unitIsOutOfDate (std::move (unitInfo), trigger, false );
111
- });
109
+ Queue.dispatch (
110
+ [this , unitInfo = std::move (unitInfo), trigger = std::move (trigger)] {
111
+ for (auto &other : Others)
112
+ other->unitIsOutOfDate (unitInfo, trigger, /* synchronous*/ false );
113
+ });
112
114
}
113
115
114
116
public:
You can’t perform that action at this time.
0 commit comments