Skip to content

Commit 318b585

Browse files
committed
Example cleanup.
1 parent 7ab678d commit 318b585

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

examples/src/BasicSynchronization.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ namespace example3
173173
public:
174174
USING_REACTIVE_DOMAIN(D)
175175

176-
VarSignalT<string> Label1 = MakeVar<D>(string( "Change" ));;
177-
VarSignalT<string> Label2 = MakeVar<D>(string( "me!" ));;
176+
VarSignalT<string> Label1 = MakeVar<D>(string( "Change" ));
177+
VarSignalT<string> Label2 = MakeVar<D>(string( "me!" ));
178178

179-
EventSourceT<> Reset = MakeEventSource<D,Token>();
179+
EventSourceT<> Reset = MakeEventSource<D>();
180180

181181
Widget() :
182182
resetCont_
@@ -199,14 +199,13 @@ namespace example3
199199
cout << "Example 3 - Continuations (1)" << endl;
200200

201201
Widget myWidget;
202-
int sum = 0;
203202

204203
Observe(myWidget.Label1, [&] (const string& v) {
205-
cout << "Label 1 changed to " << v << endl;;
204+
cout << "Label 1 changed to " << v << endl;
206205
});
207206

208207
Observe(myWidget.Label2, [&] (const string& v) {
209-
cout << "Label 2 changed to " << v << endl;;
208+
cout << "Label 2 changed to " << v << endl;
210209
});
211210

212211
myWidget.Label1 <<= "Hello";

0 commit comments

Comments
 (0)