[mapguide-commits] r9697 - sandbox/jng/ogc_viewer_representation/Web/src/DevHttpServer

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Jul 30 04:41:19 PDT 2020


Author: jng
Date: 2020-07-30 04:41:18 -0700 (Thu, 30 Jul 2020)
New Revision: 9697

Modified:
   sandbox/jng/ogc_viewer_representation/Web/src/DevHttpServer/main.cpp
Log:
Use ProductVersion.h version

Modified: sandbox/jng/ogc_viewer_representation/Web/src/DevHttpServer/main.cpp
===================================================================
--- sandbox/jng/ogc_viewer_representation/Web/src/DevHttpServer/main.cpp	2020-07-29 15:38:45 UTC (rev 9696)
+++ sandbox/jng/ogc_viewer_representation/Web/src/DevHttpServer/main.cpp	2020-07-30 11:41:18 UTC (rev 9697)
@@ -40,7 +40,6 @@
 
 int port = 8000;
 const char* host = "localhost";
-const char* version = "1.0.0";
 
 std::unique_ptr<httplib::Server> g_server;
 
@@ -481,7 +480,8 @@
     STRING wcPath = L"webconfig.ini";
     try 
     {
-        TCLAP::CmdLine cmd("MgDevHttpServer - Development HTTP Server for MapGuide", ' ', version);
+        std::string mbVersion = MgUtil::WideCharToMultiByte(ProductVersion);
+        TCLAP::CmdLine cmd("MgDevHttpServer - Development HTTP Server for MapGuide", ' ', mbVersion.c_str());
 
         TCLAP::ValueArg<std::string> argMentorPath("m", "mentor-dictionary-path", "The path to the CS-MAP dictionary data files. Not required if this path is set in webconfig.ini", false, "", "path");
         TCLAP::ValueArg<int> argPort("p", "port", "The port this server will listen on", false, 8000, "integer");



More information about the mapguide-commits mailing list