Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianfrasineanu committed Nov 25, 2016
1 parent bc5a113 commit 9184ba2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/Bootstrap.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "Console.h"
#include <vld.h>

using namespace std;

Expand Down
2 changes: 1 addition & 1 deletion app/Helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ inline void printVector(vector<V> &v, string &message)
}

void toLowerCase(string &);
void sleepAndClearBuffer(unsigned delay);
void sleepAndClearBuffer(unsigned);
void clearScreen();
2 changes: 1 addition & 1 deletion app/RepositoryInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class RepositoryInterface {

ModelInterface *model;

vector<string> errorsBag;
vector<string> errorBag;
public:
virtual void validateItems(map<string, string> &) = 0;
virtual void retrieveItemForActive() = 0;
Expand Down
8 changes: 4 additions & 4 deletions app/UserRepository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void UserRepository::defineValidation()
{ "password", "Password should be 5-16 characters long, and contain at least an uppercase letter, a number and a special character." },
};

this->errorsBag = {};
this->errorBag = {};
}

UserRepository::UserRepository()
Expand Down Expand Up @@ -48,7 +48,7 @@ void UserRepository::validateItems(map<string, string> &truncatedInput)
{
if (!regex_match(it->second.c_str(), regex(this->ValidationRules[it->first.c_str()])))
{
this->errorsBag.push_back(this->ValidationErrors[it->first.c_str()]);
this->errorBag.push_back(this->ValidationErrors[it->first.c_str()]);
}
}
catch (const regex_error &e)
Expand All @@ -62,13 +62,13 @@ void UserRepository::validateItems(map<string, string> &truncatedInput)
}

// If there are no errors, send it along.
if (this->errorsBag.empty())
if (this->errorBag.empty())
{
this->receiveCleanInput(truncatedInput);
}

// Let the console know about the errors.
Controller::setErrorsBag(this->errorsBag);
Controller::setErrorsBag(this->errorBag);
}

void UserRepository::retrieveItemForActive()
Expand Down

0 comments on commit 9184ba2

Please sign in to comment.