Преглед на файлове

Merge pull request #105880 from KoBeWi/deadline

Remove inline from constexpr variables
Thaddeus Crews преди 4 месеца
родител
ревизия
bc21c322c6
променени са 4 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. 1 1
      editor/editor_resource_preview.h
  2. 2 2
      editor/plugins/editor_context_menu_plugin.h
  3. 1 1
      scene/gui/color_picker_shape.h
  4. 1 1
      scene/resources/animation.h

+ 1 - 1
editor/editor_resource_preview.h

@@ -73,7 +73,7 @@ public:
 class EditorResourcePreview : public Node {
 	GDCLASS(EditorResourcePreview, Node);
 
-	inline static constexpr int CURRENT_METADATA_VERSION = 1; // Increment this number to invalidate all previews.
+	static constexpr int CURRENT_METADATA_VERSION = 1; // Increment this number to invalidate all previews.
 	inline static EditorResourcePreview *singleton = nullptr;
 
 	struct QueueItem {

+ 2 - 2
editor/plugins/editor_context_menu_plugin.h

@@ -43,7 +43,7 @@ class EditorContextMenuPlugin : public RefCounted {
 
 	friend class EditorContextMenuPluginManager;
 
-	inline static constexpr int MAX_ITEMS = 100;
+	static constexpr int MAX_ITEMS = 100;
 
 public:
 	enum ContextMenuSlot {
@@ -55,7 +55,7 @@ public:
 		CONTEXT_SLOT_SCENE_TABS,
 		CONTEXT_SLOT_2D_EDITOR,
 	};
-	inline static constexpr int BASE_ID = 2000;
+	static constexpr int BASE_ID = 2000;
 
 private:
 	int slot = -1;

+ 1 - 1
scene/gui/color_picker_shape.h

@@ -107,7 +107,7 @@ public:
 class ColorPickerShapeWheel : public ColorPickerShape {
 	GDCLASS(ColorPickerShapeWheel, ColorPickerShape);
 
-	inline static constexpr float WHEEL_RADIUS = 0.42;
+	static constexpr float WHEEL_RADIUS = 0.42;
 
 	MarginContainer *wheel_margin = nullptr;
 	Control *wheel = nullptr;

+ 1 - 1
scene/resources/animation.h

@@ -43,7 +43,7 @@ public:
 	typedef uint32_t TypeHash;
 
 	static inline String PARAMETERS_BASE_PATH = "parameters/";
-	static inline constexpr real_t DEFAULT_STEP = 1.0 / 30;
+	static constexpr real_t DEFAULT_STEP = 1.0 / 30;
 
 	enum TrackType : uint8_t {
 		TYPE_VALUE, // Set a value in a property, can be interpolated.