fixed pclint warning

pull/1345/head
李磊 4 years ago
parent e9868abe29
commit 1d0359d1c6

@ -52,7 +52,7 @@ class GE_FUNC_VISIBILITY StringUtils {
return s; return s;
} }
// lint -esym(551,*) // lint -esym(551,*)
static std::string &Rtrim(std::string &s) { /*lint !e618*/ static std::string &Rtrim(std::string &s) { /*lint !e618*/
#if __cplusplus >= 201103L #if __cplusplus >= 201103L
(void)s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](int c) { return !std::isspace(c); })); (void)s.erase(s.begin(), std::find_if(s.begin(), s.end(), [](int c) { return !std::isspace(c); }));
#else #else
@ -76,8 +76,8 @@ class GE_FUNC_VISIBILITY StringUtils {
/// @param [in] delim separator /// @param [in] delim separator
/// @return string array after segmentation /// @return string array after segmentation
/// ///
static std::vector<std::string> Split(const std::string &str, char delim) { static std::vector<std::string> Split(const std::string &str, char delim) { /*lint !e1077*/
std::vector<std::string> elems; std::vector<std::string> elems; /*lint !e1077*/
if (str.empty()) { if (str.empty()) {
elems.emplace_back(""); elems.emplace_back("");

Loading…
Cancel
Save