[keel,nostalgia,turbine] Cleanup

This commit is contained in:
2023-11-23 01:46:11 -06:00
parent a84a829769
commit b946e428ad
30 changed files with 120 additions and 122 deletions

View File

@@ -57,7 +57,8 @@ bool Project::exists(ox::CRStringView path) const noexcept {
}
const ox::Vector<ox::String> &Project::fileList(ox::CRStringView ext) noexcept {
return m_fileExtFileMap[ext];
// Warning: StringView to String
return m_fileExtFileMap[ox::String(ext)];
}
void Project::buildFileIndex() noexcept {
@@ -80,7 +81,8 @@ void Project::indexFile(ox::CRStringView path) noexcept {
if (err) {
return;
}
m_fileExtFileMap[ext].emplace_back(path);
// Warning: StringView to String
m_fileExtFileMap[ox::String(ext)].emplace_back(path);
}
ox::Error Project::writeBuff(const ox::StringView &path, const ox::Buffer &buff) noexcept {
@@ -88,7 +90,8 @@ ox::Error Project::writeBuff(const ox::StringView &path, const ox::Buffer &buff)
ox::Buffer outBuff;
outBuff.reserve(buff.size() + HdrSz);
ox::BufferWriter writer(&outBuff);
const auto [uuid, err] = m_ctx->pathToUuid.at(path);
// Warning: StringView to String
const auto [uuid, err] = m_ctx->pathToUuid.at(ox::String(path));
if (!err) {
oxReturnError(keel::writeUuidHeader(writer, *uuid));
}