Skip to content

Commit

Permalink
Merge pull request #112 from Fayti1703/patch-baseline
Browse files Browse the repository at this point in the history
Apply a few simple fixes
  • Loading branch information
kavika13 authored Sep 29, 2024
2 parents 7d36c83 + 624b027 commit 24eff4a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions Source/Graphics/font_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,6 @@ FontRenderer::FontRenderer() {
impl_ = new FontRendererImpl();
}

FontRenderer::FontRenderer(const FontRenderer &other) {
*impl_ = *other.impl_;
}

FontRenderer::~FontRenderer() {
delete impl_;
}
Expand Down
4 changes: 3 additions & 1 deletion Source/Graphics/font_renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ class FontRenderer {
}
void GetKerning(int face_id, char character_a, char character_b, FT_Vector* vec);
FontRenderer();
FontRenderer(const FontRenderer& other);
FontRenderer(const FontRenderer& other) = delete;
~FontRenderer();

FontRenderer& operator=(const FontRenderer& other) = delete;

private:
FontRendererImpl* impl_;
};
1 change: 1 addition & 0 deletions Source/Internal/stopwatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <cstdint>
#include <string>
#include <cstdint>

void BusyWaitMilliseconds(uint32_t how_many);

Expand Down
2 changes: 2 additions & 0 deletions Source/Math/vec4.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class vec4 {
entries[3] = val;
}

inline vec4(const vec4& vec) = default;

inline vec4& operator=(float param) {
entries[0] = param;
entries[1] = param;
Expand Down

0 comments on commit 24eff4a

Please sign in to comment.