From 05224e3fb5edf4c1367ec3835d522d386bdd921e Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 20 Feb 2022 20:07:33 -0600 Subject: [PATCH] [nostalgia/studio] Remove unnecessary c_str conversion --- src/nostalgia/studio/lib/project.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostalgia/studio/lib/project.hpp b/src/nostalgia/studio/lib/project.hpp index c4766931c..4bc7f7c03 100644 --- a/src/nostalgia/studio/lib/project.hpp +++ b/src/nostalgia/studio/lib/project.hpp @@ -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);