소스 검색

Make DEFAULT_FONT_SIZE inline constexpr

1vanK 3 년 전
부모
커밋
f82d727f90
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      Source/Urho3D/AngelScript/Generated_GlobalVariables.cpp
  2. 1 1
      Source/Urho3D/UI/Text.h

+ 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;