diff UnitTestsSources/ServerIndexTests.cpp @ 2924:22524fd06225

macros ORTHANC_OVERRIDE and ORTHANC_FINAL
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 09 Nov 2018 09:06:46 +0100
parents e5e3253a1164
children dc18d5804746
line wrap: on
line diff
--- a/UnitTestsSources/ServerIndexTests.cpp	Thu Nov 08 17:26:17 2018 +0100
+++ b/UnitTestsSources/ServerIndexTests.cpp	Fri Nov 09 09:06:46 2018 +0100
@@ -70,20 +70,21 @@
     }
 
     virtual void SignalRemainingAncestor(ResourceType type,
-                                         const std::string& publicId) 
+                                         const std::string& publicId)
+      ORTHANC_OVERRIDE
     {
       ancestorId_ = publicId;
       ancestorType_ = type;
     }
 
-    virtual void SignalFileDeleted(const FileInfo& info)
+    virtual void SignalFileDeleted(const FileInfo& info) ORTHANC_OVERRIDE
     {
       const std::string fileUuid = info.GetUuid();
       deletedFiles_.push_back(fileUuid);
       LOG(INFO) << "A file must be removed: " << fileUuid;
     }       
 
-    virtual void SignalChange(const ServerIndexChange& change)
+    virtual void SignalChange(const ServerIndexChange& change) ORTHANC_OVERRIDE
     {
       if (change.GetChangeType() == ChangeType_Deleted)
       {
@@ -108,7 +109,7 @@
     {
     }
 
-    virtual void SetUp() 
+    virtual void SetUp()  ORTHANC_OVERRIDE
     {
       listener_.reset(new TestDatabaseListener);
 
@@ -126,7 +127,7 @@
       index_->Open();
     }
 
-    virtual void TearDown()
+    virtual void TearDown() ORTHANC_OVERRIDE
     {
       index_->Close();
       index_.reset(NULL);