From aa970b1fc08b2e7a3b9b3e5fac685ab6b11421f6 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 28 Sep 2024 18:45:09 -0500 Subject: [PATCH] [keel,studio] Cleanup --- src/olympic/keel/include/keel/module.hpp | 2 +- src/olympic/studio/modlib/include/studio/project.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/olympic/keel/include/keel/module.hpp b/src/olympic/keel/include/keel/module.hpp index 13de7f1e..6d17a1bf 100644 --- a/src/olympic/keel/include/keel/module.hpp +++ b/src/olympic/keel/include/keel/module.hpp @@ -15,7 +15,7 @@ using TypeDescGenerator = ox::Error(*)(ox::TypeStore&); template ox::Error generateTypeDesc(ox::TypeStore &ts) noexcept { - return ox::buildTypeDef(&ts).error; + return ox::buildTypeDef(ts).error; } class Module { diff --git a/src/olympic/studio/modlib/include/studio/project.hpp b/src/olympic/studio/modlib/include/studio/project.hpp index 256b64fb..140cb9ee 100644 --- a/src/olympic/studio/modlib/include/studio/project.hpp +++ b/src/olympic/studio/modlib/include/studio/project.hpp @@ -136,7 +136,7 @@ ox::Error Project::writeObj(ox::StringViewCR path, T const&obj, ox::ClawFormat f oxReturnError(writeBuff(path, ox::BufferView{buff} + (fmt == ox::ClawFormat::Organic))); // write type descriptor if (m_typeStore.get().error) { - oxReturnError(ox::buildTypeDef(&m_typeStore, &obj)); + oxReturnError(ox::buildTypeDef(m_typeStore, obj)); } oxRequire(desc, m_typeStore.get()); auto const descPath = ox::sfmt("{}/{}", m_typeDescPath, buildTypeId(*desc));