Skip to content

Commit 7e0671f

Browse files
committed
Fix exception classes overrides
1 parent 724e248 commit 7e0671f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

GL/include/framebuffer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ namespace gl {
3232
void blit(framebuffer& target);
3333
};
3434

35-
class framebuffer_exception : public std::exception {
35+
class framebuffer_exception final : public std::exception {
3636
char m_Msg[512];
3737
public:
3838
framebuffer_exception(const char* msg);
39-
inline const char* what() { return m_Msg; }
39+
inline const char* what() const override { return m_Msg; }
4040
};
4141
}

GL/include/shader.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ namespace gl {
3939
std::unordered_map<uint64_t, uint32_t> m_Uniforms;
4040
};
4141

42-
class shader_exception : public std::exception {
42+
class shader_exception final : public std::exception {
4343
char m_Msg[512];
4444
public:
4545
shader_exception(const char* msg);
46-
inline const char* what() { return m_Msg; }
46+
inline const char* what() const override { return m_Msg; }
4747
};
4848
}
4949

Shared/include/openglrenderer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ class OpenGLRenderer final : public SarRenderer {
3636
gl::texture atlas;
3737
};
3838

39-
class glrenderer_exception : public std::exception {
39+
class glrenderer_exception final : public std::exception {
4040
char m_Msg[512];
4141
public:
4242
glrenderer_exception(const char* msg);
43-
inline const char* what() { return m_Msg; }
43+
inline const char* what() const override { return m_Msg; }
4444
};

Shared/include/symbolart.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ class SarFile {
6363
~SarFile();
6464
};
6565

66-
class sar_exception : public std::exception {
66+
class sar_exception final : public std::exception {
6767
char m_Msg[512];
6868
public:
6969
sar_exception(const char* msg);
70-
inline const char* what() { return m_Msg; }
70+
inline const char* what() const override { return m_Msg; };
7171
};

0 commit comments

Comments
 (0)