Use 'override/final' instead of 'virtual' for overridden methods
[oota-llvm.git] / utils / unittest / googletest / include / gtest / internal / gtest-port.h
index 9ddcea1fbf99d321f9e38c7cb10f7505de76ba52..6b942e9f9d9e79839ed73c9eb18effbb46b487d4 100644 (file)
@@ -1165,7 +1165,7 @@ class ThreadWithParam : public ThreadWithParamBase {
     GTEST_CHECK_POSIX_SUCCESS_(
         pthread_create(&thread_, 0, &ThreadFuncWithCLinkage, base));
   }
-  ~ThreadWithParam() { Join(); }
+  ~ThreadWithParam() override { Join(); }
 
   void Join() {
     if (!finished_) {
@@ -1174,7 +1174,7 @@ class ThreadWithParam : public ThreadWithParamBase {
     }
   }
 
-  virtual void Run() {
+  void Run() override {
     if (thread_can_start_ != NULL)
       thread_can_start_->WaitForNotification();
     func_(param_);