[Glacier] Update String to be non-copyable by default.

This commit is contained in:
Drew Galbraith 2023-11-19 19:14:37 -08:00
parent ced89834de
commit 337126cabb
10 changed files with 39 additions and 42 deletions

View file

@ -107,7 +107,7 @@ void DumpModules() {
#endif
}
const limine_file& GetInitProgram(glcr::String path) {
const limine_file& GetInitProgram(const glcr::String& path) {
const limine_module_response& resp = boot::GetModules();
for (uint64_t i = 0; i < resp.module_count; i++) {
const limine_file& file = *resp.modules[i];
@ -115,7 +115,7 @@ const limine_file& GetInitProgram(glcr::String path) {
return file;
}
}
panic("Program not found: {}", path);
panic("Program not found: {}", path.view());
UNREACHABLE
}