Path: new class "Path" wraps filesystem path strings

This commit is contained in:
Max Kellermann
2013-01-17 00:56:57 +01:00
parent 8901514506
commit e5039c478a
21 changed files with 380 additions and 238 deletions

View File

@@ -238,7 +238,8 @@ glue_state_file_init(GError **error_r)
return true;
}
state_file = new StateFile(path, *global_partition, *main_loop);
state_file = new StateFile(Path::FromUTF8(path),
*global_partition, *main_loop);
g_free(path);
state_file->Read();
return true;