Enable clang-tidy and apply fixes
Enable clang-tidy, fix the compile issue and fix the clang-tidy issues.
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: I6250c6519a725c07b0cd10abe464fda97a2aebd7
diff --git a/sol/sol_manager.hpp b/sol/sol_manager.hpp
index dd857fe..4d7652a 100644
--- a/sol/sol_manager.hpp
+++ b/sol/sol_manager.hpp
@@ -232,7 +232,8 @@
return *(iter->second);
}
- std::string msg = "Invalid SOL payload instance " + payloadInstance;
+ std::string msg =
+ "Invalid SOL payload instance " + std::to_string(payloadInstance);
throw std::runtime_error(msg.c_str());
}
@@ -252,7 +253,7 @@
}
}
- std::string msg = "Invalid SOL SessionID " + sessionID;
+ std::string msg = "Invalid SOL SessionID " + std::to_string(sessionID);
throw std::runtime_error(msg.c_str());
}