mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Use C++11's in-line member initializers instead of default constructors with initializer lists, for some structs.
--HG-- branch : minor
This commit is contained in:
@@ -165,15 +165,9 @@ private:
|
||||
|
||||
struct Cone
|
||||
{
|
||||
int innerAngle; // degrees
|
||||
int outerAngle; // degrees
|
||||
float outerVolume;
|
||||
|
||||
Cone()
|
||||
: innerAngle(360)
|
||||
, outerAngle(360)
|
||||
, outerVolume(0.0f)
|
||||
{}
|
||||
int innerAngle = 360; // degrees
|
||||
int outerAngle = 360; // degrees
|
||||
float outerVolume = 0.0f;
|
||||
} cone;
|
||||
|
||||
float offsetSamples;
|
||||
|
||||
Reference in New Issue
Block a user