fixed clear issue

master
Phitherek 2013-04-03 18:11:06 +02:00
parent 20ab862593
commit 0d86fb997d
4 changed files with 7 additions and 9 deletions

View File

@ -186,11 +186,3 @@ for(unsigned int i = 0; i < _repoinfo.size(); i++) {
}
rifile.close();
}
void RepositoryInfo::clear() {
ConfigFile emptyconf;
_conf = emptyconf;
_repoinfo.clear();
_repoinfoIterator = -1;
_repoinfoAtEnd = false;
}

View File

@ -42,6 +42,5 @@ public:
void setConfigFile(ConfigFile conf); ///< \brief A function that sets ConfigFile in the object.
///< \param conf A ConfigFile object.
void write(); ///< A function that writes back the repository info file.
void clear(); ///< A function that clears the object.
};
}

View File

@ -16,3 +16,9 @@ std::string RepositoryModDescription::getPath() {
void RepositoryModDescription::setPath(std::string path) {
_path = path;
}
void RepositoryModDescription::clear() {
_name = "";
_release = 0;
_path = "";
}

View File

@ -22,6 +22,7 @@ public:
///< \return Installation path of the mod.
void setPath(std::string path); ///< \brief A function that sets installation path of the mod.
///< \param path Installation path of the mod.
void clear(); ///< A function that clears the object.
};
}
#endif