Skip to content

Commit

Permalink
some var const.
Browse files Browse the repository at this point in the history
  • Loading branch information
vill committed Apr 29, 2020
1 parent bff5253 commit 0ea5690
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DataLoader/DataLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ bool DataLoader::loadMap(std::unordered_map<unsigned, std::string>& map, const s
std::string line;
std::getline(in, line);
while (!line.empty()) {
auto j = line.find(DataLoader::DELIMITER);
const auto j = line.find(DataLoader::DELIMITER);
if (j == std::string::npos) {
continue;
} else {
Expand All @@ -39,7 +39,7 @@ void DataLoader::clear() {
int DataLoader::readFromFile(const std::string& filename) {
std::ifstream in(filename);
if (in.is_open()) {
int before = this->transactions.size();
const auto before = this->transactions.size();
std::string line;
std::getline(in, line);
while (!line.empty()) {
Expand Down

0 comments on commit 0ea5690

Please sign in to comment.