From b5edb73f380461f921f07a318b2bbce0a13aa803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 1 Oct 2012 15:38:26 +0200 Subject: [PATCH] GlutWindowContext: don't save unused argc and argv variables. --- src/Contexts/GlutWindowContext.cpp | 2 +- src/Contexts/GlutWindowContext.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Contexts/GlutWindowContext.cpp b/src/Contexts/GlutWindowContext.cpp index c94db351e..f06f4b38f 100644 --- a/src/Contexts/GlutWindowContext.cpp +++ b/src/Contexts/GlutWindowContext.cpp @@ -22,7 +22,7 @@ namespace Magnum { namespace Contexts { GlutWindowContext* GlutWindowContext::instance = nullptr; -GlutWindowContext::GlutWindowContext(int& argc, char** argv, const std::string& title, const Math::Vector2& size): argc(argc), argv(argv) { +GlutWindowContext::GlutWindowContext(int& argc, char** argv, const std::string& title, const Math::Vector2& size) { /* Save global instance */ instance = this; diff --git a/src/Contexts/GlutWindowContext.h b/src/Contexts/GlutWindowContext.h index f4dff7120..0f33c71fd 100644 --- a/src/Contexts/GlutWindowContext.h +++ b/src/Contexts/GlutWindowContext.h @@ -250,9 +250,6 @@ class GlutWindowContext: public AbstractWindowContext { static GlutWindowContext* instance; - int& argc; - char** argv; - Context* c; };