Browse Source

Make DEFAULT_FONT_SIZE inline constexpr

1vanK 3 years ago
parent
commit
f82d727f90

+ 1 - 1
Source/Urho3D/AngelScript/Generated_GlobalVariables.cpp

@@ -31,7 +31,7 @@ void ASRegisterGeneratedGlobalVariables(asIScriptEngine* engine)
     // static const float DEFAULT_FARCLIP | File: ../Graphics/Camera.h
     engine->RegisterGlobalProperty("const float DEFAULT_FARCLIP", (void*)&DEFAULT_FARCLIP);
 
-    // static const float DEFAULT_FONT_SIZE | File: ../UI/Text.h
+    // constexpr float DEFAULT_FONT_SIZE | File: ../UI/Text.h
     engine->RegisterGlobalProperty("const float DEFAULT_FONT_SIZE", (void*)&DEFAULT_FONT_SIZE);
 
     // static const unsigned DEFAULT_LIGHTMASK | File: ../Graphics/Drawable.h

+ 1 - 1
Source/Urho3D/UI/Text.h

@@ -10,7 +10,7 @@
 namespace Urho3D
 {
 
-static const float DEFAULT_FONT_SIZE = 12;
+inline constexpr float DEFAULT_FONT_SIZE = 12;
 
 class Font;
 class FontFace;