Skip to content

Commit 068f8f5

Browse files
committed
fix lint
1 parent 6638806 commit 068f8f5

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

src/ruisapp/glue/sdl/glue.cxx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,12 @@ class window_wrapper : public utki::destructable
375375
public:
376376
sdl_cursor_wrapper() = default;
377377

378+
sdl_cursor_wrapper(const sdl_cursor_wrapper&) = delete;
379+
sdl_cursor_wrapper& operator=(const sdl_cursor_wrapper&) = delete;
380+
381+
sdl_cursor_wrapper(sdl_cursor_wrapper&&) = delete;
382+
sdl_cursor_wrapper& operator=(sdl_cursor_wrapper&&) = delete;
383+
378384
void set(ruis::mouse_cursor cursor)
379385
{
380386
ASSERT(!this->sdl_cursor)
@@ -452,8 +458,8 @@ class window_wrapper : public utki::destructable
452458
}
453459
auto* ww = reinterpret_cast<sdl_window_wrapper*>(user_data);
454460

455-
double width;
456-
double height;
461+
double width = 0;
462+
double height = 0;
457463

458464
if (auto res = emscripten_get_element_css_size("#canvas", &width, &height);
459465
res != EMSCRIPTEN_RESULT_SUCCESS)
@@ -728,8 +734,8 @@ application::application(std::string name, const window_params& wp) :
728734
auto& ww = get_impl(*this);
729735

730736
// Get actual window size, as it can differ from requested one.
731-
int width;
732-
int height;
737+
int width = 0;
738+
int height = 0;
733739
SDL_GetWindowSize(ww.window.window, &width, &height);
734740

735741
auto dims = ruis::vec2(ruis::real(width), ruis::real(height));

0 commit comments

Comments
 (0)