[keel,nostalgia/core] Remove implicit String::String(String const&) calls

This commit is contained in:
2023-12-01 23:38:59 -06:00
parent 91fd0d0786
commit 742427584a
6 changed files with 9 additions and 9 deletions

View File

@@ -563,9 +563,9 @@ class PaletteChangeCommand: public TileSheetCommand {
};
TileSheetEditorModel::TileSheetEditorModel(turbine::Context *ctx, ox::String path):
TileSheetEditorModel::TileSheetEditorModel(turbine::Context *ctx, ox::StringView path):
m_ctx(ctx),
m_path(std::move(path)) {
m_path(path) {
oxRequireT(img, readObj<TileSheet>(ctx->keelCtx, m_path));
m_img = *img;
if (m_img.defaultPalette) {

View File

@@ -36,7 +36,7 @@ class TileSheetEditorModel: public ox::SignalHandler {
ox::Bounds m_selectionBounds = {{-1, -1}, {-1, -1}};
public:
TileSheetEditorModel(turbine::Context *ctx, ox::String path);
TileSheetEditorModel(turbine::Context *ctx, ox::StringView path);
~TileSheetEditorModel() override = default;

View File

@@ -11,8 +11,8 @@
namespace nostalgia::core {
TileSheetEditorView::TileSheetEditorView(turbine::Context *ctx, ox::String path):
m_model(ctx, std::move(path)), m_pixelsDrawer(&m_model) {
TileSheetEditorView::TileSheetEditorView(turbine::Context *ctx, ox::StringView path):
m_model(ctx, path), m_pixelsDrawer(&m_model) {
// build shaders
oxThrowError(m_pixelsDrawer.buildShader());
oxThrowError(m_pixelGridDrawer.buildShader());

View File

@@ -50,7 +50,7 @@ class TileSheetEditorView: public ox::SignalHandler {
std::size_t m_palIdx = 0;
public:
TileSheetEditorView(turbine::Context *ctx, ox::String path);
TileSheetEditorView(turbine::Context *ctx, ox::StringView path);
~TileSheetEditorView() override = default;