diff Plugin/Plugin.cpp @ 206:d1ed9efdea6c

rename ORTHANC_WEBVIEWER_VERSION as ORTHANC_PLUGIN_VERSION
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 20 Jul 2018 14:25:04 +0200
parents 7edc2c82996c
children 2f27287c047c
line wrap: on
line diff
--- a/Plugin/Plugin.cpp	Wed Jul 18 15:28:42 2018 +0200
+++ b/Plugin/Plugin.cpp	Fri Jul 20 14:25:04 2018 +0200
@@ -614,10 +614,10 @@
       }
 
       if (!scheduler.LookupProperty(webViewerVersion, CacheProperty_WebViewerVersion) ||
-          webViewerVersion != std::string(ORTHANC_WEBVIEWER_VERSION))
+          webViewerVersion != std::string(ORTHANC_PLUGIN_VERSION))
       {
         std::string s = ("The version of the Web viewer plugin has changed from \"" + webViewerVersion + "\" to \"" + 
-                         std::string(ORTHANC_WEBVIEWER_VERSION) + "\": The cache of the Web viewer will be cleared");
+                         std::string(ORTHANC_PLUGIN_VERSION) + "\": The cache of the Web viewer will be cleared");
         OrthancPluginLogWarning(context_, s.c_str());
         clear = true;
       }
@@ -629,7 +629,7 @@
         OrthancPluginLogWarning(context_, "Clearing the cache of the Web viewer");
         scheduler.Clear();
         scheduler.SetProperty(CacheProperty_OrthancVersion, context_->orthancVersion);
-        scheduler.SetProperty(CacheProperty_WebViewerVersion, ORTHANC_WEBVIEWER_VERSION);
+        scheduler.SetProperty(CacheProperty_WebViewerVersion, ORTHANC_PLUGIN_VERSION);
       }
       else
       {
@@ -729,6 +729,6 @@
 
   ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion()
   {
-    return ORTHANC_WEBVIEWER_VERSION;
+    return ORTHANC_PLUGIN_VERSION;
   }
 }