Use string_views in more query functions

This commit is contained in:
Alexander Bock
2025-12-08 23:35:54 +01:00
parent e13d1515a5
commit f9346452cb
7 changed files with 28 additions and 33 deletions

View File

@@ -25,7 +25,7 @@
#ifndef __OPENSPACE_CORE___QUERY___H__
#define __OPENSPACE_CORE___QUERY___H__
#include <string>
#include <string_view>
#include <vector>
namespace openspace {
@@ -39,10 +39,10 @@ class IswaGroup;
class ScreenSpaceRenderable;
Scene* sceneGraph();
SceneGraphNode* sceneGraphNode(const std::string& name);
const Renderable* renderable(const std::string& name);
properties::Property* property(const std::string& uri);
properties::PropertyOwner* propertyOwner(const std::string& uri);
SceneGraphNode* sceneGraphNode(std::string_view name);
const Renderable* renderable(std::string_view name);
properties::Property* property(std::string_view uri);
properties::PropertyOwner* propertyOwner(std::string_view uri);
const std::vector<properties::Property*>& allProperties();
const std::vector<properties::PropertyOwner*>& allPropertyOwners();