Minor optimization.
This commit is contained in:
		@@ -23,7 +23,7 @@
 | 
			
		||||
 | 
			
		||||
static std::vector<std::string> errors;
 | 
			
		||||
 | 
			
		||||
void add_error(std::string error) {
 | 
			
		||||
void add_error(const std::string &error) {
 | 
			
		||||
	if(not errors.empty())
 | 
			
		||||
		errors.push_back(error);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -20,4 +20,4 @@
 | 
			
		||||
 | 
			
		||||
#include <string>
 | 
			
		||||
 | 
			
		||||
void add_error(std::string error);
 | 
			
		||||
void add_error(const std::string &error);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user