refactor(3p/nix): Make all single-argument constructors explicit
Implicit constructors can be confusing, especially in a codebase that is already as unintentionally obfuscated as this one. https://google.github.io/styleguide/cppguide.html#Explicit_Constructors
This commit is contained in:
		
							parent
							
								
									3908732181
								
							
						
					
					
						commit
						88f337588c
					
				
					 12 changed files with 31 additions and 31 deletions
				
			
		
							
								
								
									
										2
									
								
								third_party/nix/src/libstore/gc.cc
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								third_party/nix/src/libstore/gc.cc
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -505,7 +505,7 @@ struct LocalStore::GCState {
 | 
			
		|||
  unsigned long long bytesInvalidated;
 | 
			
		||||
  bool moveToTrash = true;
 | 
			
		||||
  bool shouldDelete;
 | 
			
		||||
  GCState(GCResults& results_) : results(results_), bytesInvalidated(0) {}
 | 
			
		||||
  explicit GCState(GCResults& results_) : results(results_), bytesInvalidated(0) {}
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
bool LocalStore::isActiveTempFile(const GCState& state, const Path& path,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue