[nostalgia,studio] Replace some String returns with StringView
This commit is contained in:
@@ -20,11 +20,11 @@ SceneEditorImGui::SceneEditorImGui(turbine::Context &ctx, ox::StringView path):
|
||||
setRequiresConstantRefresh(false);
|
||||
}
|
||||
|
||||
ox::CRString SceneEditorImGui::itemName() const noexcept {
|
||||
ox::CStringView SceneEditorImGui::itemName() const noexcept {
|
||||
return m_itemPath;
|
||||
}
|
||||
|
||||
ox::CRString SceneEditorImGui::itemDisplayName() const noexcept {
|
||||
ox::CStringView SceneEditorImGui::itemDisplayName() const noexcept {
|
||||
return m_itemName;
|
||||
}
|
||||
|
||||
|
@@ -28,9 +28,9 @@ class SceneEditorImGui: public studio::Editor {
|
||||
/**
|
||||
* Returns the name of item being edited.
|
||||
*/
|
||||
ox::CRString itemName() const noexcept final;
|
||||
ox::CStringView itemName() const noexcept final;
|
||||
|
||||
ox::CRString itemDisplayName() const noexcept final;
|
||||
ox::CStringView itemDisplayName() const noexcept final;
|
||||
|
||||
void draw(turbine::Context*) noexcept final;
|
||||
|
||||
|
Reference in New Issue
Block a user