}
+Settings& Settings::getInstance()
+{
+ static Settings settings;
+ return settings;
+}
+
+
void Settings::parseArgs(int argc, char* argv[])
{
- for (int i = 1; i < argc; i++)
+ for (int i = 1; i < argc; ++i)
{
char* where = strchr(argv[i], (int)'=');
char* home = getenv("HOME");
- for (it = filePaths.begin(); it != filePaths.end(); it++)
+ for (it = filePaths.begin(); it != filePaths.end(); ++it)
{
std::string path = *it;