mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-29 23:39:26 -05:00
Code Cleanup (#2191)
* constexpr const -> constexpr * const char* -> std::string_view
This commit is contained in:
@@ -106,7 +106,7 @@ public:
|
||||
};
|
||||
|
||||
struct CameraNavState {
|
||||
static constexpr const char* Type = "setNavigationState";
|
||||
static constexpr std::string_view Type = "setNavigationState";
|
||||
|
||||
std::string anchor;
|
||||
std::optional<std::string> aim;
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
};
|
||||
|
||||
struct CameraGoToGeo {
|
||||
static constexpr const char* Type = "goToGeo";
|
||||
static constexpr std::string_view Type = "goToGeo";
|
||||
|
||||
std::string anchor;
|
||||
double latitude;
|
||||
@@ -146,7 +146,7 @@ public:
|
||||
/// Removes an asset unless the `ignoreUpdates` member is set to `true`
|
||||
void removeAsset(const std::string& path);
|
||||
|
||||
static constexpr const Version CurrentVersion = Version{ 1, 1 };
|
||||
static constexpr Version CurrentVersion = Version{ 1, 1 };
|
||||
|
||||
Version version = CurrentVersion;
|
||||
std::vector<Module> modules;
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
|
||||
#include <ghoul/glm.h>
|
||||
#include <ghoul/misc/managedmemoryuniqueptr.h>
|
||||
#include <memory>
|
||||
|
||||
namespace ghoul { class Dictionary; }
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
|
||||
#include <ghoul/glm.h>
|
||||
#include <ghoul/misc/managedmemoryuniqueptr.h>
|
||||
#include <memory>
|
||||
|
||||
namespace ghoul { class Dictionary; }
|
||||
|
||||
|
||||
@@ -75,10 +75,10 @@ public:
|
||||
BooleanType(UpdateScene);
|
||||
|
||||
static constexpr const char* RootNodeIdentifier = "Root";
|
||||
static constexpr const char* KeyIdentifier = "Identifier";
|
||||
static constexpr const char* KeyParentName = "Parent";
|
||||
static constexpr const char* KeyDependencies = "Dependencies";
|
||||
static constexpr const char* KeyTag = "Tag";
|
||||
static constexpr std::string_view KeyIdentifier = "Identifier";
|
||||
static constexpr std::string_view KeyParentName = "Parent";
|
||||
static constexpr std::string_view KeyDependencies = "Dependencies";
|
||||
static constexpr std::string_view KeyTag = "Tag";
|
||||
|
||||
SceneGraphNode();
|
||||
virtual ~SceneGraphNode() override;
|
||||
|
||||
@@ -29,9 +29,7 @@
|
||||
|
||||
#include <ghoul/glm.h>
|
||||
#include <ghoul/misc/managedmemoryuniqueptr.h>
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
|
||||
namespace ghoul { class Dictionary; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user