master_file_(master_file),
initialized_(false),
ok_(true),
+ many_errors_((options & MANY_ERRORS) != 0),
complete_(false)
{}
const std::string& reason)
{
callbacks_.error(filename, line, reason);
- if (!(options_ & MANY_ERRORS)) {
+ if (!many_errors_) {
// In case we don't have the lenient mode, every error is fatal
// and we throw
ok_ = false;
AddRRCallback add_callback_;
MasterLoader::Options options_;
const std::string master_file_;
+ std::string string_token_;
bool initialized_;
bool ok_;
- std::string string_token_;
+ const bool many_errors_;
public:
bool complete_;
};
// Good, we loaded another one
++count;
- } else if ((options_ & MANY_ERRORS) == 0) {
+ } else if (!many_errors_) {
ok_ = false;
complete_ = true;
// We don't have the exact error here, but it was reported