Loading include/statsgen.h +3 −3 Original line number Diff line number Diff line Loading @@ -124,7 +124,7 @@ public: * @brief Initialise the name of the database * @param name: name of the file */ void setFilename(std::string name); void setFilename(const std::string& name); /** Loading @@ -145,7 +145,7 @@ public: * some interesting passwords * @param reg: regular expression */ void setRegex(std::string reg); void setRegex(const std::string& reg); /** * @brief Useful to know if the database uses the format withcount Loading Loading @@ -184,7 +184,7 @@ public: * @brief Where to write masks * @param outfile: the file where to write masks */ void setOutfile(std::string outfile); void setOutfile(const std::string& outfile); /** * @brief enable debugging Loading src/core/statsgen.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ using namespace std; void Statsgen::setFilename(std::string name) { void Statsgen::setFilename(const std::string& name) { if (name == "-"){ is_stdin = true; warn("reading from stdin enabled, loading the whole list in memory"); Loading @@ -46,7 +46,7 @@ void Statsgen::setTop(int val) { } void Statsgen::setRegex(string expr) { void Statsgen::setRegex(const string& expr) { string tmp(expr.length(),' '); copy(expr.begin(), expr.end(), tmp.begin()); Loading Loading @@ -80,7 +80,7 @@ void Statsgen::setNbThread(int nb) { } } void Statsgen::setOutfile(string outfile){ void Statsgen::setOutfile(const string& outfile){ outfile_name = outfile; } Loading Loading
include/statsgen.h +3 −3 Original line number Diff line number Diff line Loading @@ -124,7 +124,7 @@ public: * @brief Initialise the name of the database * @param name: name of the file */ void setFilename(std::string name); void setFilename(const std::string& name); /** Loading @@ -145,7 +145,7 @@ public: * some interesting passwords * @param reg: regular expression */ void setRegex(std::string reg); void setRegex(const std::string& reg); /** * @brief Useful to know if the database uses the format withcount Loading Loading @@ -184,7 +184,7 @@ public: * @brief Where to write masks * @param outfile: the file where to write masks */ void setOutfile(std::string outfile); void setOutfile(const std::string& outfile); /** * @brief enable debugging Loading
src/core/statsgen.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ using namespace std; void Statsgen::setFilename(std::string name) { void Statsgen::setFilename(const std::string& name) { if (name == "-"){ is_stdin = true; warn("reading from stdin enabled, loading the whole list in memory"); Loading @@ -46,7 +46,7 @@ void Statsgen::setTop(int val) { } void Statsgen::setRegex(string expr) { void Statsgen::setRegex(const string& expr) { string tmp(expr.length(),' '); copy(expr.begin(), expr.end(), tmp.begin()); Loading Loading @@ -80,7 +80,7 @@ void Statsgen::setNbThread(int nb) { } } void Statsgen::setOutfile(string outfile){ void Statsgen::setOutfile(const string& outfile){ outfile_name = outfile; } Loading