Skip to content

Commit 6dc9795

Browse files
CEL Dev Teamkyessenov
authored andcommitted
Internal change.
PiperOrigin-RevId: 347657817
1 parent d2ef27c commit 6dc9795

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

common/escaping.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ absl::optional<std::string> unescape(const std::string& s, bool is_bytes) {
294294
}
295295
value = value.substr(1, n - 2);
296296
// If there is nothing to escape, then return.
297-
if (is_raw_literal || (value.find("\\") == std::string::npos)) {
297+
if (is_raw_literal || (value.find('\\') == std::string::npos)) {
298298
return value;
299299
}
300300

parser/source_factory.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ std::string SourceFactory::errorMessage(const std::string& description,
488488
error->location.col + 1, error->message);
489489
std::string snippet = getSourceLine(error->location.line, expression);
490490
std::string::size_type pos = 0;
491-
while ((pos = snippet.find("\t", pos)) != std::string::npos) {
491+
while ((pos = snippet.find('\t', pos)) != std::string::npos) {
492492
snippet.replace(pos, 1, " ");
493493
}
494494
std::string src_line = "\n | " + snippet;

0 commit comments

Comments
 (0)