4141#define OCS_VERSION_PATCH 3
4242#define OCS_VERSION_SUFFIX " "
4343
44- const std::string ocs::Version:: OCS_VERSION_STRING = std::to_string(OCS_VERSION_MAJOR) + " ."
45- + std::to_string(OCS_VERSION_MINOR) + " ." + std::to_string(OCS_VERSION_PATCH) + OCS_VERSION_SUFFIX;
46- const uint32_t ocs::Version:: OCS_VERSION = 0x10009000 ;
44+ static const std::string OCS_VERSION_STRING{ std::to_string (OCS_VERSION_MAJOR) + " ."
45+ + std::to_string (OCS_VERSION_MINOR) + " ." + std::to_string (OCS_VERSION_PATCH) + OCS_VERSION_SUFFIX} ;
46+ static const uint32_t OCS_VERSION{ 0x10009000 } ;
4747
48- const std::vector<std::tuple<uint32_t , std::string>> ocs::Version:: OCS_ALL_VERSIONS_VECTOR = {
48+ static const std::vector<std::tuple<uint32_t , std::string>> OCS_ALL_VERSIONS_VECTOR{
4949 { 0x10000000 , " 5.0" },
5050 { 0x10000001 , " 5.1" },
5151 { 0x10000002 , " 5.2" },
@@ -73,15 +73,15 @@ const std::vector<std::tuple<uint32_t, std::string>> ocs::Version::OCS_ALL_VERSI
7373 { 0x100020F8 , " 6.2u5" },
7474 { 0x10003000 , " 8.0.x Univa" },
7575 { 0x10003001 , " 8.0.x Some Gridengine" },
76- { OCS_VERSION, get_version_string (). c_str () },
76+ { OCS_VERSION, OCS_VERSION_STRING },
7777};
7878
7979#ifdef ADD_GRIDWARE_COPYRIGHT
80- const std::string ocs::Version:: OCS_LONG_PRODUCT_NAME = " Gridware Cluster Scheduler" ;
81- const std::string ocs::Version:: OCS_SHORT_PRODUCT_NAME = " GCS" ;
80+ static const std::string OCS_LONG_PRODUCT_NAME{ " Gridware Cluster Scheduler" } ;
81+ static const std::string OCS_SHORT_PRODUCT_NAME{ " GCS" } ;
8282#else
83- const std::string ocs::Version:: OCS_LONG_PRODUCT_NAME = " Open Cluster Scheduler" ;
84- const std::string ocs::Version:: OCS_SHORT_PRODUCT_NAME = " OCS" ;
83+ static const std::string OCS_LONG_PRODUCT_NAME{ " Open Cluster Scheduler" } ;
84+ static const std::string OCS_SHORT_PRODUCT_NAME{ " OCS" } ;
8585#endif
8686
8787std::string
@@ -94,11 +94,13 @@ ocs::Version::get_version() {
9494 return OCS_VERSION;
9595}
9696
97- std::string ocs::Version::get_short_product_name (){
97+ std::string
98+ ocs::Version::get_short_product_name () {
9899 return OCS_SHORT_PRODUCT_NAME;
99100}
100101
101- std::string ocs::Version::get_long_product_name (){
102+ std::string
103+ ocs::Version::get_long_product_name () {
102104 return OCS_LONG_PRODUCT_NAME;
103105}
104106
@@ -173,21 +175,21 @@ ocs::Version::do_versions_match(lList **alpp, const uint32_t version, const char
173175
174176
175177#if !(ADD_COPYRIGHT || ADD_HPC_GRIDWARE_COPYRIGHT)
176- extern const char SFLN_ELN[] = " \n \
178+ extern const char SFLN_ELN[]{ " \n \
177179 Cluster Scheduler is based on code donated by Sun Microsystems.\n \
178180 The copyright is owned by Sun Microsystems and other contributors.\n \
179181 It has been made available to the open source community under the SISSL license.\n \
180- For further information and the latest news visit: @fBhttp://gridengine.sunsource.net\n\n " ;
182+ For further information and the latest news visit: @fBhttp://gridengine.sunsource.net\n\n " } ;
181183
182- extern const char DQS_ACK[] = " \n \
184+ extern const char DQS_ACK[]{ " \n \
183185We would like to acknowledge and thank the efforts of the\n \
184- Florida State University in creating the DQS program.\n " ;
186+ Florida State University in creating the DQS program.\n " } ;
185187
186188#endif
187189
188190#ifndef ADD_HPC_GRIDWARE_COPYRIGHT
189191
190- extern const char SISSL[] = " \n \
192+ extern const char SISSL[]{ " \n \
191193The Contents of this file are made available subject to the terms of\n \
192194the Sun Industry Standards Source License Version 1.2\n \
193195\n \
@@ -212,6 +214,6 @@ The Initial Developer of the Original Code is: Sun Microsystems, Inc.\n\
212214\n \
213215Copyright: 2001 by Sun Microsystems, Inc.\n \
214216\n \
215- All Rights Reserved.\n " ;
217+ All Rights Reserved.\n " } ;
216218
217219#endif
0 commit comments