Skip to content

Commit 27cd111

Browse files
committed
Fix cpplint
1 parent ff51904 commit 27cd111

File tree

10 files changed

+19
-22
lines changed

10 files changed

+19
-22
lines changed

include/BoundingBox.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class BoundingBox : public ::BoundingBox {
6060
inline bool CheckCollision(const ::Ray& ray) const {
6161
return GetRayCollisionBox(ray, *this).hit;
6262
}
63-
63+
6464
/**
6565
* Get collision information between ray and bounding box
6666
*/

include/Camera2D.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ class Camera2D : public ::Camera2D {
1717

1818
Camera2D() {}
1919
Camera2D(::Vector2 offset, ::Vector2 target,
20-
float rotation = 0.0f, float zoom = 1.0f
21-
) : ::Camera2D{offset, target, rotation, zoom} {}
20+
float rotation = 0.0f, float zoom = 1.0f) : ::Camera2D{offset, target, rotation, zoom} {}
2221

2322
inline Camera2D& BeginMode() {
2423
::BeginMode2D(*this);

include/Camera3D.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ class Camera3D : public ::Camera3D {
2828
::Vector3 target = ::Vector3{0.0f, 0.0f, 0.0f},
2929
::Vector3 up = ::Vector3{0.0f, 1.0f, 0.0f},
3030
float fovy = 0,
31-
int projection = CAMERA_PERSPECTIVE
32-
) : ::Camera3D{position, target, up, fovy, projection} {}
31+
int projection = CAMERA_PERSPECTIVE) : ::Camera3D{position, target, up, fovy, projection} {}
3332

3433
Camera3D() {}
3534

include/Color.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ class Color : public ::Color {
2121
unsigned char red,
2222
unsigned char green,
2323
unsigned char blue,
24-
unsigned char alpha = 255
25-
) : ::Color{red, green, blue, alpha} {};
24+
unsigned char alpha = 255) : ::Color{red, green, blue, alpha} {};
2625

2726
/**
2827
* Black.

include/Material.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Material : public ::Material {
4242
*/
4343
static std::vector<Material> Load(const std::string& fileName) {
4444
int count = 0;
45-
// TODO: Material::Load() possibly leaks the materials array.
45+
// TODO(RobLoach): Material::Load() possibly leaks the materials array.
4646
::Material* materials = ::LoadMaterials(fileName.c_str(), &count);
4747
return std::vector<Material>(materials, materials + count);
4848
}

include/Matrix.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ class Matrix : public ::Matrix {
2222
Matrix(
2323
float m0 = 0, float m1 = 0, float m2 = 0, float m3 = 0, float m4 = 0, float m5 = 0,
2424
float m6 = 0, float m7 = 0, float m8 = 0, float m9 = 0, float m10 = 0, float m11 = 0,
25-
float m12 = 0, float m13 = 0, float m14 = 0, float m15 = 0
26-
) : ::Matrix{m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13, m14, m15} {}
25+
float m12 = 0, float m13 = 0, float m14 = 0,
26+
float m15 = 0) : ::Matrix{m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13, m14, m15} {}
2727

2828
GETTERSETTER(float, M0, m0)
2929
GETTERSETTER(float, M1, m1)

include/Ray.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Ray : public ::Ray {
4343
inline bool CheckCollisionSphere(::Vector3 center, float radius) const {
4444
return GetRayCollisionSphere(*this, center, radius).hit;
4545
}
46-
46+
4747
/**
4848
* Get collision information between ray and sphere
4949
*/
@@ -57,7 +57,7 @@ class Ray : public ::Ray {
5757
inline bool CheckCollision(const ::BoundingBox& box) const {
5858
return GetRayCollisionBox(*this, box).hit;
5959
}
60-
60+
6161
/**
6262
* Get collision information between ray and box
6363
*/

include/RayCollision.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef RAYLIB_CPP_INCLUDE_RAYHITINFO_HPP_
2-
#define RAYLIB_CPP_INCLUDE_RAYHITINFO_HPP_
1+
#ifndef RAYLIB_CPP_INCLUDE_RAYCOLLISION_HPP_
2+
#define RAYLIB_CPP_INCLUDE_RAYCOLLISION_HPP_
33

44
#include "./raylib.hpp"
55
#include "./raylib-cpp-utils.hpp"
@@ -14,7 +14,8 @@ class RayCollision : public ::RayCollision {
1414
set(ray);
1515
}
1616

17-
RayCollision(bool hit, float distance, ::Vector3 point, ::Vector3 normal) : ::RayCollision{hit, distance, point, normal} {}
17+
RayCollision(bool hit, float distance,
18+
::Vector3 point, ::Vector3 normal) : ::RayCollision{hit, distance, point, normal} {}
1819

1920
/**
2021
* Get collision info between ray and mesh
@@ -57,4 +58,4 @@ class RayCollision : public ::RayCollision {
5758
};
5859
} // namespace raylib
5960

60-
#endif // RAYLIB_CPP_INCLUDE_RAYHITINFO_HPP_
61+
#endif // RAYLIB_CPP_INCLUDE_RAYCOLLISION_HPP_

include/Sound.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Sound : public ::Sound {
2525

2626
other.frameCount = 0;
2727
other.stream = { 0, 0, 0, 0 };
28-
};
28+
}
2929

3030
Sound(const std::string& fileName) {
3131
set(LoadSound(fileName.c_str()));
@@ -53,7 +53,7 @@ class Sound : public ::Sound {
5353
other.stream = { 0, 0, 0, 0 };
5454

5555
return *this;
56-
};
56+
}
5757

5858
/**
5959
* Update sound buffer with new data

include/Wave.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ class Wave : public ::Wave {
2121
unsigned int sampleRate = 0,
2222
unsigned int sampleSize = 0,
2323
unsigned int channels = 0,
24-
void *data = nullptr
25-
) : ::Wave{frameCount, sampleRate, sampleSize, channels, data} { }
24+
void *data = nullptr) : ::Wave{frameCount, sampleRate, sampleSize, channels, data} { }
2625

2726
/**
2827
* Load wave data from file
@@ -40,7 +39,7 @@ class Wave : public ::Wave {
4039

4140
Wave(const Wave& other) {
4241
set(other.Copy());
43-
};
42+
}
4443

4544
Wave(Wave&& other) {
4645
set(other);
@@ -79,7 +78,7 @@ class Wave : public ::Wave {
7978
set(other.Copy());
8079

8180
return *this;
82-
};
81+
}
8382

8483
Wave& operator=(Wave&& other) {
8584
if (this != &other) {

0 commit comments

Comments
 (0)