From 364eeb5d89baec3166abe9d1bab69b4c813c76b3 Mon Sep 17 00:00:00 2001 From: Derek Brown Date: Fri, 3 Jun 2022 09:07:42 -0700 Subject: [PATCH] Update gtest-param-util.h --- googletest/include/gtest/internal/gtest-param-util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/googletest/include/gtest/internal/gtest-param-util.h b/googletest/include/gtest/internal/gtest-param-util.h index 41a16bfb..0d4aafc5 100644 --- a/googletest/include/gtest/internal/gtest-param-util.h +++ b/googletest/include/gtest/internal/gtest-param-util.h @@ -652,9 +652,9 @@ class ParameterizedTestSuiteInfo : public ParameterizedTestSuiteInfoBase { }; typedef ::std::vector InstantiationContainer; - static std::string validParamChars = "_-:/"; - static bool IsValidParamName(const std::string& name) { + static constexpr validParamChars = "_-:/"; + // Check for empty string if (name.empty()) return false;