From 990efa6ef6be9f07cf7ca9594ca1a5ffbdb378c6 Mon Sep 17 00:00:00 2001 From: Vladimir Gamalian Date: Thu, 15 Oct 2015 16:45:08 +0700 Subject: [PATCH] Remove unused variables --- SDL2pp/Window.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/SDL2pp/Window.cc b/SDL2pp/Window.cc index 458e8a9..234f91a 100644 --- a/SDL2pp/Window.cc +++ b/SDL2pp/Window.cc @@ -65,14 +65,14 @@ Point Window::GetSize() const { } int Window::GetWidth() const { - int w, h; - SDL_GetWindowSize(window_, &w, &h); + int w; + SDL_GetWindowSize(window_, &w, nullptr); return w; } int Window::GetHeight() const { - int w, h; - SDL_GetWindowSize(window_, &w, &h); + int h; + SDL_GetWindowSize(window_, nullptr, &h); return h; } @@ -83,14 +83,14 @@ Point Window::GetDrawableSize() const { } int Window::GetDrawableWidth() const { - int w, h; - SDL_GL_GetDrawableSize(window_, &w, &h); + int w; + SDL_GL_GetDrawableSize(window_, &w, nullptr); return w; } int Window::GetDrawableHeight() const { - int w, h; - SDL_GL_GetDrawableSize(window_, &w, &h); + int h; + SDL_GL_GetDrawableSize(window_, nullptr, &h); return h; }