Skip to content

Commit 7a8a6eb

Browse files
committed
fix warnings
1 parent d9b3334 commit 7a8a6eb

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

include/Keyboard.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
#include "./Functions.hpp"
55
#include "./raylib.hpp"
66

7+
namespace raylib {
78
/**
89
* Input-related functions: keyboard
910
*/
10-
namespace raylib::Keyboard {
11+
namespace Keyboard {
1112
/**
1213
* Detect if a key has been pressed once
1314
*/
@@ -57,7 +58,8 @@ namespace raylib::Keyboard {
5758
[[maybe_unused]] RLCPPAPI inline int GetCharPressed() {
5859
return ::GetCharPressed();
5960
}
60-
} // namespace raylib::Keyboard
61+
} // namespace Keyboard
62+
} // namespace raylib
6163

6264
namespace RKeyboard = raylib::Keyboard;
6365

include/RenderTexture.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ class RenderTexture : public ::RenderTexture {
1313
/**
1414
* Default constructor to build an empty RenderTexture.
1515
*/
16-
RenderTexture()
17-
: ::RenderTexture{ .id = 0 } {
18-
// Nothing.
19-
}
16+
RenderTexture() = default;
2017

2118
RenderTexture(const ::RenderTexture& renderTexture)
2219
: ::RenderTexture(renderTexture) {

0 commit comments

Comments
 (0)