Fix CID 1393240 (Missing return statement)

This also fixes a compiler warning:

unittest/progress_test.cc:59:9: warning:
 no return statement in function returning non-void [-Wreturn-type]

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-06-20 17:14:53 +02:00
parent cb6b1c118f
commit c8dd4456e0

View File

@ -55,7 +55,7 @@ class QuickTest : public testing::Test {
return instance->classicProgress( progress );
};
monitor.cancel = []( void* ths, int words ) -> bool {
((ClassicMockProgressSink*)ths)->cancel( words );
return ((ClassicMockProgressSink*)ths)->cancel(words);
};
monitor.cancel_this = this;
instance = this;