diff options
author | Gennadiy Civil <gennadiycivil@users.noreply.github.com> | 2018-07-20 10:30:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 10:30:23 -0400 |
commit | c62c79432bd23762a99a6658380fd202f858d7a9 (patch) | |
tree | 75f6ec1727b40e525fef203cb7999cdf240a3760 /googlemock/docs/CookBook.md | |
parent | 6ce9b98f541b8bcd84c5c5b3483f29a933c4aefb (diff) | |
parent | d8db0ca9cf226f37e909982af83845a4cd40800f (diff) | |
download | googletest-c62c79432bd23762a99a6658380fd202f858d7a9.tar.gz googletest-c62c79432bd23762a99a6658380fd202f858d7a9.tar.bz2 googletest-c62c79432bd23762a99a6658380fd202f858d7a9.zip |
Merge pull request #1668 from duxiuxing/googletest_for_asam
Fix warning C4819 in Visual Studio
Diffstat (limited to 'googlemock/docs/CookBook.md')
-rw-r--r-- | googlemock/docs/CookBook.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/googlemock/docs/CookBook.md b/googlemock/docs/CookBook.md index bd9f026b..8809b0e7 100644 --- a/googlemock/docs/CookBook.md +++ b/googlemock/docs/CookBook.md @@ -2247,7 +2247,7 @@ enum class AccessLevel { kInternal, kPublic }; class Buzz { public: - explicit Buzz(AccessLevel access) { … } + explicit Buzz(AccessLevel access) { ... } ... }; @@ -2320,7 +2320,7 @@ Note that `ByMove()` is essential here - if you drop it, the code won’t compil Quiz time! What do you think will happen if a `Return(ByMove(...))` action is performed more than once (e.g. you write -`….WillRepeatedly(Return(ByMove(...)));`)? Come think of it, after the first +`.WillRepeatedly(Return(ByMove(...)));`)? Come think of it, after the first time the action runs, the source value will be consumed (since it’s a move-only value), so the next time around, there’s no value to move from -- you’ll get a run-time error that `Return(ByMove(...))` can only be run once. |