[keel,studio,turbine] Finish removing implicit String(const char*) calls
This commit is contained in:
parent
1a1c8ae6cc
commit
9904399724
@ -17,7 +17,7 @@ using PackTransform = ox::Error(*)(Context&, ox::Buffer &clawData);
|
||||
class Context {
|
||||
public:
|
||||
ox::UPtr<ox::FileSystem> rom;
|
||||
ox::BasicString<32> appName = "Keel App";
|
||||
ox::BasicString<32> appName{"Keel App"};
|
||||
#ifndef OX_BARE_METAL
|
||||
AssetManager assetManager;
|
||||
ox::HashMap<ox::String, ox::UUID> pathToUuid;
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
#include <keel/keel.hpp>
|
||||
|
||||
static std::map<ox::String, ox::Error(*)()> tests = {
|
||||
static std::map<ox::StringView, ox::Error(*)()> tests = {
|
||||
{
|
||||
"writeUuidHeader",
|
||||
[]() -> ox::Error {
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
namespace keel {
|
||||
|
||||
TypeStore::TypeStore(ox::FileSystem &fs, ox::String descPath) noexcept:
|
||||
TypeStore::TypeStore(ox::FileSystem &fs, ox::StringView descPath) noexcept:
|
||||
m_fs(fs),
|
||||
m_descPath(std::move(descPath)) {
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ class TypeStore: public ox::TypeStore {
|
||||
ox::String m_descPath;
|
||||
|
||||
public:
|
||||
explicit TypeStore(ox::FileSystem &fs, ox::String descPath) noexcept;
|
||||
explicit TypeStore(ox::FileSystem &fs, ox::StringView descPath) noexcept;
|
||||
|
||||
protected:
|
||||
ox::Result<ox::UniquePtr<ox::DescriptorType>> loadDescriptor(ox::CRStringView typeId) noexcept override;
|
||||
|
@ -52,7 +52,7 @@ ox::BasicString<255> ProjectTreeModel::fullPath() const noexcept {
|
||||
if (m_parent) {
|
||||
return m_parent->fullPath() + "/" + ox::StringView(m_name);
|
||||
}
|
||||
return "";
|
||||
return {};
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -34,11 +34,11 @@ class ItemMakerT: public ItemMaker {
|
||||
const ox::ClawFormat fmt;
|
||||
public:
|
||||
constexpr explicit ItemMakerT(
|
||||
ox::String pDisplayName,
|
||||
ox::String pParentDir,
|
||||
ox::CRStringView fileExt,
|
||||
ox::StringView pDisplayName,
|
||||
ox::StringView pParentDir,
|
||||
ox::StringView fileExt,
|
||||
ox::ClawFormat pFmt = ox::ClawFormat::Metal) noexcept:
|
||||
ItemMaker(std::move(pDisplayName), std::move(pParentDir), fileExt),
|
||||
ItemMaker(ox::String(pDisplayName), ox::String(pParentDir), fileExt),
|
||||
fmt(pFmt) {
|
||||
}
|
||||
constexpr ItemMakerT(
|
||||
|
@ -14,7 +14,7 @@ namespace turbine {
|
||||
|
||||
ox::String getClipboardText(Context &ctx) noexcept {
|
||||
auto &gctx = static_cast<GlfwContext&>(ctx);
|
||||
return glfwGetClipboardString(gctx.window);
|
||||
return ox::String(glfwGetClipboardString(gctx.window));
|
||||
}
|
||||
|
||||
void setClipboardText(Context &ctx, ox::CRStringView text) noexcept {
|
||||
|
Loading…
Reference in New Issue
Block a user