Fix clang style warnings in webrtc/base/thread.h

TBR=tommi@webrtc.org
BUG=webrtc:163
NOTRY=True # trivial change, last round of tests passed.

Review-Url: https://codereview.webrtc.org/2706843002
Cr-Commit-Position: refs/heads/master@{#16715}
This commit is contained in:
aleloi 2017-02-20 04:17:53 -08:00 committed by Commit bot
parent 9420af7900
commit 8dd4ec3324
2 changed files with 5 additions and 1 deletions

View File

@ -561,6 +561,10 @@ AutoThread::~AutoThread() {
} }
#if defined(WEBRTC_WIN) #if defined(WEBRTC_WIN)
ComThread::~ComThread() {
Stop();
}
void ComThread::Run() { void ComThread::Run() {
HRESULT hr = CoInitializeEx(NULL, COINIT_MULTITHREADED); HRESULT hr = CoInitializeEx(NULL, COINIT_MULTITHREADED);
RTC_DCHECK(SUCCEEDED(hr)); RTC_DCHECK(SUCCEEDED(hr));

View File

@ -306,7 +306,7 @@ class AutoThread : public Thread {
class ComThread : public Thread { class ComThread : public Thread {
public: public:
ComThread() {} ComThread() {}
~ComThread() override { Stop(); } ~ComThread() override;
protected: protected:
void Run() override; void Run() override;