Commit 49ef97d8 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2946] get access to base class's static method via 'this' pointer

as some compilers don't allow direct use of Base::method.
parent 935c7cc4
...@@ -779,8 +779,7 @@ TEST_F(SyncServerTest, resetUDPServerBeforeEvent) { ...@@ -779,8 +779,7 @@ TEST_F(SyncServerTest, resetUDPServerBeforeEvent) {
(*udp_server_)(); (*udp_server_)();
udp_server_->stop(); udp_server_->stop();
udp_server_.reset(); udp_server_.reset();
void (*prev_handler)(int) = void (*prev_handler)(int) = std::signal(SIGALRM, this->stopIOService);
std::signal(SIGALRM, DNSServerTestBase::stopIOService);
current_service = &service; current_service = &service;
alarm(IO_SERVICE_TIME_OUT); alarm(IO_SERVICE_TIME_OUT);
service.run(); service.run();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment