fixed clear issue
This commit is contained in:
parent
20ab862593
commit
0d86fb997d
@ -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;
|
||||
}
|
||||
|
@ -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.
|
||||
};
|
||||
}
|
||||
|
@ -16,3 +16,9 @@ std::string RepositoryModDescription::getPath() {
|
||||
void RepositoryModDescription::setPath(std::string path) {
|
||||
_path = path;
|
||||
}
|
||||
|
||||
void RepositoryModDescription::clear() {
|
||||
_name = "";
|
||||
_release = 0;
|
||||
_path = "";
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user