Skip to content
Snippets Groups Projects
Commit ba8c877b authored by dec's avatar dec
Browse files

Cosmetic changes

parent 125bd8e8
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ Config::Config(std::string configPath, std::string type)
bool Config::readConfigFile(std::string configPath)
{
std::ifstream file(configPath.c_str(), std::ios::in);
std::ifstream file(configPath.c_str());
if (!file.is_open())
{
......@@ -216,7 +216,7 @@ std::vector<std::string> Config::splitValue(Vita::string str, Vita::string onlyE
std::vector<std::string> final;
for (auto&& iterator = work.begin(); iterator != work.end();
iterator++)
++iterator)
{
if (("" != *iterator) && onlyEnding.empty())
{
......
......@@ -1255,7 +1255,7 @@ int Mhwd::launch(int argc, char *argv[])
}
else
{
config_ .reset(new Config(filepath, operationType));
config_.reset(new Config(filepath, operationType));
if (!data_.fillConfig(config_, filepath, operationType))
{
printer_.printError("failed to read custom config '" + filepath + "'!");
......
......@@ -18,7 +18,8 @@ class Transaction
{
public:
Transaction() = delete;
Transaction(Data data, std::shared_ptr<Config> config, MHWD::TRANSACTIONTYPE type, bool allowReinstallation);
Transaction(Data data, std::shared_ptr<Config> config, MHWD::TRANSACTIONTYPE type,
bool allowReinstallation);
bool isAllowedToReinstall() const;
std::shared_ptr<Config> config_;
......@@ -27,6 +28,7 @@ public:
std::vector<std::shared_ptr<Config>> conflictedConfigs_;
std::vector<std::shared_ptr<Config>> configsRequirements_;
private:
bool allowedToReinstall_ = false;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment