Skip to content

Commit

Permalink
use static constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmherokiller committed Oct 23, 2023
1 parent e53e7ec commit 83e11f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Plasma/FeatureLib/pfDXPipeline/plDXDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ You can contact Cyan Worlds, Inc. by email [email protected]
#define WEAK_ERROR_CHECK( cond ) cond
#endif

constexpr D3DMATRIX d3dIdentityMatrix{
static constexpr D3DMATRIX d3dIdentityMatrix{
1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0f,
Expand Down
2 changes: 1 addition & 1 deletion Sources/Plasma/FeatureLib/pfDXPipeline/plDXPipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ inline DWORD F2DW( FLOAT f )
#define WEAK_ERROR_CHECK( cond ) cond
#endif

constexpr D3DMATRIX d3dIdentityMatrix{ 1.0f, 0.0f, 0.0f, 0.0f,
static constexpr D3DMATRIX d3dIdentityMatrix{ 1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 1.0f };
Expand Down
2 changes: 1 addition & 1 deletion Sources/Plasma/FeatureLib/pfDXPipeline/plDXTextFont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ You can contact Cyan Worlds, Inc. by email [email protected]
static const long PLD3D_FONTFVF = D3DFVF_XYZ | D3DFVF_DIFFUSE
| D3DFVF_TEX1 | D3DFVF_TEXCOORDSIZE3(0);

constexpr D3DMATRIX d3dIdentityMatrix{ 1.0f, 0.0f, 0.0f, 0.0f,
static constexpr D3DMATRIX d3dIdentityMatrix{ 1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 1.0f };
Expand Down

0 comments on commit 83e11f2

Please sign in to comment.