File tree 1 file changed +14
-7
lines changed
1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,16 @@ class CheckResultProducer : virtual public Object
38
38
virtual void unlock_shared () noexcept = 0;
39
39
};
40
40
41
+ class TestCheckResultProducer : public CheckResultProducer
42
+ {
43
+ public:
44
+ bool try_lock_shared () noexcept override ;
45
+ void unlock_shared () noexcept override ;
46
+ };
47
+
48
+ // TODO: revert this before merging!
49
+ typedef TestCheckResultProducer TodoCheckResultProducer;
50
+
41
51
/* *
42
52
* A check result.
43
53
*
@@ -48,6 +58,10 @@ class CheckResult final : public ObjectImpl<CheckResult>
48
58
public:
49
59
DECLARE_OBJECT (CheckResult);
50
60
61
+ CheckResult () : CheckResult(new TodoCheckResultProducer())
62
+ {
63
+ }
64
+
51
65
CheckResult (CheckResultProducer::Ptr producer) : m_Producer(std::move(producer))
52
66
{
53
67
}
@@ -121,13 +135,6 @@ class DslCheckResultProducer : public CheckResultProducer
121
135
static Ptr m_Instance;
122
136
};
123
137
124
- class TestCheckResultProducer : public CheckResultProducer
125
- {
126
- public:
127
- bool try_lock_shared () noexcept override ;
128
- void unlock_shared () noexcept override ;
129
- };
130
-
131
138
}
132
139
133
140
#endif /* CHECKRESULT_H */
You can’t perform that action at this time.
0 commit comments