Skip to content

Commit f09e269

Browse files
committed
fix reference
1 parent bfdba3e commit f09e269

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/Core/Context.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Context {
2929
void SetExit(bool exit) { m_Exit = exit; }
3030
void SetWindowWidth(unsigned int width) { m_WindowWidth = width; }
3131
void SetWindowHeight(unsigned int height) { m_WindowHeight = height; }
32-
void SetWindowIcon(const std::string path);
32+
void SetWindowIcon(const std::string &path);
3333

3434
void Setup();
3535
void Update();

src/Core/Context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ std::shared_ptr<Context> Context::GetInstance() {
135135
return s_Instance;
136136
}
137137

138-
void Context::SetWindowIcon(const std::string path) {
138+
void Context::SetWindowIcon(const std::string &path) {
139139
SDL_Surface *image = IMG_Load(path.c_str());
140140
SDL_SetWindowIcon(m_Window, image);
141141
}

0 commit comments

Comments
 (0)