Replace "…" with "..."(three dots) to fix warning C4819 in Visual Studio
This commit is contained in:
		
							parent
							
								
									20f9427c4a
								
							
						
					
					
						commit
						617d1fd14a
					
				@ -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.
 | 
			
		||||
 | 
			
		||||
@ -114,7 +114,7 @@ class FunctionMocker<R($As)> : public
 | 
			
		||||
//
 | 
			
		||||
//   class MockClass {
 | 
			
		||||
//     // Overload 1
 | 
			
		||||
//     MockSpec<string&()> gmock_GetName() { … }
 | 
			
		||||
//     MockSpec<string&()> gmock_GetName() { ... }
 | 
			
		||||
//     // Overload 2. Declared const so that the compiler will generate an
 | 
			
		||||
//     // error when trying to resolve between this and overload 4 in
 | 
			
		||||
//     // 'gmock_GetName(WithoutMatchers(), nullptr)'.
 | 
			
		||||
@ -125,7 +125,7 @@ class FunctionMocker<R($As)> : public
 | 
			
		||||
//     }
 | 
			
		||||
//
 | 
			
		||||
//     // Overload 3
 | 
			
		||||
//     const string& gmock_GetName() const { … }
 | 
			
		||||
//     const string& gmock_GetName() const { ... }
 | 
			
		||||
//     // Overload 4
 | 
			
		||||
//     MockSpec<const string&()> gmock_GetName(
 | 
			
		||||
//         const WithoutMatchers&, const Function<const string&()>*) const {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user