Minor optimization.
This commit is contained in:
parent
4dd6b1ba06
commit
5ab7a7bb5b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user