Skip to content

Commit 363fcae

Browse files
committed
I think MSVC is mistaken that (b ? "X" : "Y") is not of type
`char const (&)[2]`, but allow for its beliefs nevertheless.
1 parent 8c27711 commit 363fcae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

google/cloud/internal/log_wrapper.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class DurationMessagePrinter
4545
generator->PrintLiteral("\"");
4646
generator->PrintString(absl::FormatDuration(d));
4747
generator->PrintLiteral("\"");
48-
generator->PrintLiteral(single_line_mode ? " " : "\n");
48+
generator->Print(single_line_mode ? " " : "\n", 1);
4949
}
5050
};
5151

@@ -63,7 +63,7 @@ class TimestampMessagePrinter
6363
auto t = absl::FromUnixSeconds(seconds) + absl::Nanoseconds(nanos);
6464
auto constexpr kFormat = "\"%E4Y-%m-%dT%H:%M:%E*SZ\"";
6565
generator->PrintString(absl::FormatTime(kFormat, t, absl::UTCTimeZone()));
66-
generator->PrintLiteral(single_line_mode ? " " : "\n");
66+
generator->Print(single_line_mode ? " " : "\n", 1);
6767
}
6868
};
6969

0 commit comments

Comments
 (0)