genderisierung

This commit is contained in:
blastmaster 2014-05-02 00:09:13 +02:00
parent 55a96a00b1
commit 1ab8812486
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ int
SicccPersister::write_sicccfile() SicccPersister::write_sicccfile()
{ {
assert(!json_file_name.empty()); assert(!json_file_name.empty());
std::string store_str = merouterin.get_persist_path() + "/" + beautify_filename(); std::string store_str = merouter.get_persist_path() + "/" + beautify_filename();
assert(root); assert(root);
int ret = json_dump_file(root, store_str.c_str(), JSON_INDENT(4)); int ret = json_dump_file(root, store_str.c_str(), JSON_INDENT(4));
return ret; return ret;
@ -37,7 +37,7 @@ SicccPersister::read_sicccdir()
struct dirent *entry = nullptr; struct dirent *entry = nullptr;
std::vector<Sicccobject> v; std::vector<Sicccobject> v;
json_error_t *error = nullptr; json_error_t *error = nullptr;
if ((dir = opendir(merouterin.get_persist_path().c_str())) == NULL) { if ((dir = opendir(merouter.get_persist_path().c_str())) == NULL) {
std::cerr << "Error could not open directory" << std::endl; std::cerr << "Error could not open directory" << std::endl;
return v; // should throw exception instea1d return v; // should throw exception instea1d
} }