Commit a4ce6914 authored by Filipe Marques's avatar Filipe Marques

Adding Camel Case convention

parent 359ef61a
......@@ -718,10 +718,10 @@ bool Mhwd::runScript(std::shared_ptr<Config> config, MHWD::TRANSACTIONTYPE opera
}
}
void Mhwd::set_version_mhwd(std::string version_of_software, std::string year_copyright)
void Mhwd::setVersionMhwd(std::string versionOfSoftware, std::string yearCopyright)
{
version_ = version_of_software;
year_ = year_copyright;
version_ = versionOfSoftware;
year_ = yearCopyright;
}
void Mhwd::tryToParseCmdLineOptions(int argc, char* argv[], bool& autoConfigureNonFreeDriver,
......
......@@ -50,7 +50,7 @@ class Mhwd
public:
Mhwd();
~Mhwd() = default;
void set_version_mhwd(std::string version_of_software, std::string year_copyright);
void setVersionMhwd(std::string versionOfSoftware, std::string yearCopyright);
int launch(int argc, char *argv[]);
private:
......
......@@ -100,10 +100,10 @@ void Printer::printHelp() const
<< " --pmroot <path>\t\t\tset package manager root\n" << std::endl;
}
void Printer::printVersion(std::string version_mhwd, std::string year_copy) const
void Printer::printVersion(std::string versionMhwd, std::string yearCopy) const
{
std::cout << "Manjaro Hardware Detection version "<< version_mhwd <<"\n\n"
<< "Copyright (C) "<< year_copy <<" Manjaro Linux Developers\n"
std::cout << "Manjaro Hardware Detection version "<< versionMhwd <<"\n\n"
<< "Copyright (C) "<< yearCopy <<" Manjaro Linux Developers\n"
<< "This is free software licensed under GNU GPL v.3\n"
<< "There is NO warranty; not even for MERCHANTABILITY or \n"
<< "FITNESS FOR A PARTICULAR PURPOSE.\n"
......
......@@ -40,7 +40,7 @@ public:
void printWarning(std::string warningMsg) const;
void printMessage(MHWD::MESSAGETYPE type, std::string str) const;
void printHelp() const;
void printVersion(std::string version_mhwd, std::string year_copy) const;
void printVersion(std::string versionMhwd, std::string yearCopy) const;
void listDevices(const std::vector<std::shared_ptr<Device>>& devices, std::string typeOfDevice) const;
void listConfigs(const std::vector<std::shared_ptr<Config>>& configs,
std::string header) const;
......
......@@ -31,7 +31,7 @@ int main(int argc, char *argv[])
try
{
Mhwd mhwd;
mhwd.set_version_mhwd("0.5.1","2012 2013 2014 2015");
mhwd.setVersionMhwd("0.5.1","2012 2013 2014 2015");
return mhwd.launch(argc, argv);
}
catch(...)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment