[nostalgia/studio] Remove unnecessary c_str conversion

This commit is contained in:
Gary Talent 2022-02-20 20:07:33 -06:00
parent 64c74cb9c1
commit 05224e3fb5

View File

@ -99,7 +99,7 @@ ox::Error Project::writeObj(const ox::String &path, T *obj) const noexcept {
typeOut.back().value = '\n';
// write to FS
ox::String descPath = "/.nostalgia/type_descriptors/";
const auto typePath = descPath + type->typeName.c_str();
const auto typePath = descPath + type->typeName;
oxReturnError(mkdir(descPath));
oxReturnError(writeBuff(typePath, typeOut));
fileUpdated.emit(path);