Skip to content

Commit b276764

Browse files
committed
math_opt: fixup
1 parent c89483a commit b276764

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ortools/math_opt/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ add_library(${NAME} OBJECT)
1616

1717
file(GLOB _SRCS "*.h" "*.cc")
1818
list(FILTER _SRCS EXCLUDE REGEX ".*_test.cc")
19-
list(FILTER _SRCS EXCLUDE REGEX "/matchers\\.")
19+
list(FILTER _SRCS EXCLUDE REGEX "/matchers\.")
2020

2121
target_sources(${NAME} PRIVATE ${_SRCS})
2222
set_target_properties(${NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON)

ortools/math_opt/cpp/key_types.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,17 @@ std::vector<typename Map::mapped_type> Values(const Map& map,
149149
namespace internal {
150150

151151
// The CHECK message to use when a KeyType::storage() is nullptr.
152-
inline const std::string kKeyHasNullModelStorage =
152+
inline constexpr const char kKeyHasNullModelStorage[] =
153153
"The input key has null .storage().";
154154

155155
// The CHECK message to use when two KeyType with different storage() are used
156156
// in the same collection.
157-
inline const std::string kObjectsFromOtherModelStorage =
157+
inline constexpr const char kObjectsFromOtherModelStorage[] =
158158
"The input objects belongs to another model.";
159159

160160
// The Status message to use when an input KeyType is from an unexpected
161161
// storage().
162-
inline constexpr absl::string_view kInputFromInvalidModelStorage =
162+
inline constexpr const char kInputFromInvalidModelStorage[] =
163163
"the input does not belong to the same model";
164164

165165
// Returns a failure when the input pointer is not nullptr and points to a

0 commit comments

Comments
 (0)