File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ void warn_people()
112
112
std::cout << "There are aliens in the carpark!" << std::endl;
113
113
}
114
114
115
- int main()
115
+ int main(void )
116
116
{
117
117
AlienDetector mydetector;
118
118
mydetector.signal_detected.connect( sigc::ptr_fun(warn_people) );
@@ -165,7 +165,7 @@ private:
165
165
<para >You could rewrite your code as follows:</para >
166
166
167
167
<programlisting >
168
- int main()
168
+ int main(void )
169
169
{
170
170
AlienDetector mydetector;
171
171
AlienAlerter myalerter("localhost"); // added
@@ -242,7 +242,7 @@ void warn_people(std::string where)
242
242
std::cout << "There are aliens in " << where << "!" << std::endl;
243
243
}
244
244
245
- int main()
245
+ int main(void )
246
246
{
247
247
AlienDetector mydetector;
248
248
mydetector.signal_detected.connect( sigc::ptr_fun(warn_people) );
You can’t perform that action at this time.
0 commit comments