mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-03 21:09:11 +00:00 
			
		
		
		
	Simplify some boolean returns.
This commit is contained in:
		
							parent
							
								
									e15a39f463
								
							
						
					
					
						commit
						5fa861fa95
					
				
					 2 changed files with 3 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -1120,10 +1120,7 @@ namespace datalog {
 | 
			
		|||
            virtual bool operator==(const iterator_core & it) {
 | 
			
		||||
                //we worry about the equality operator only because of checking 
 | 
			
		||||
                //the equality with the end() iterator
 | 
			
		||||
                if(is_finished() && it.is_finished()) {
 | 
			
		||||
                    return true;
 | 
			
		||||
                }
 | 
			
		||||
                return false;
 | 
			
		||||
                return is_finished() && it.is_finished();
 | 
			
		||||
            }
 | 
			
		||||
        private:
 | 
			
		||||
            //private and undefined copy constructor and assignment operator
 | 
			
		||||
| 
						 | 
				
			
			@ -1153,10 +1150,7 @@ namespace datalog {
 | 
			
		|||
            virtual bool operator==(const row_iterator_core & it) {
 | 
			
		||||
                //we worry about the equality operator only because of checking 
 | 
			
		||||
                //the equality with the end() iterator
 | 
			
		||||
                if(is_finished() && it.is_finished()) {
 | 
			
		||||
                    return true;
 | 
			
		||||
                }
 | 
			
		||||
                return false;
 | 
			
		||||
                return is_finished() && it.is_finished();
 | 
			
		||||
            }
 | 
			
		||||
        private:
 | 
			
		||||
            //private and undefined copy constructor and assignment operator
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue