File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments