]> git.sesse.net Git - stockfish/blobdiff - src/misc.cpp
Clean functions returning by const values
[stockfish] / src / misc.cpp
index 48e20a396c400f8f14410f802a3c7b29add9ab73..fe920140dbaf3ca4aaab00e1469ce68d8bda32eb 100644 (file)
@@ -138,7 +138,7 @@ public:
 /// the program was compiled) or "Stockfish <Version>", depending on whether
 /// Version is empty.
 
-const string engine_info(bool to_uci) {
+string engine_info(bool to_uci) {
 
   const string months("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec");
   string month, day, year;
@@ -161,7 +161,7 @@ const string engine_info(bool to_uci) {
 
 /// compiler_info() returns a string trying to describe the compiler we use
 
-const std::string compiler_info() {
+std::string compiler_info() {
 
   #define stringify2(x) #x
   #define stringify(x) stringify2(x)