Use C++11's in-line member initializers instead of default constructors with initializer lists, for some structs.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2014-09-18 02:39:18 -03:00
parent fffbd3ecab
commit cf7342f8b7
9 changed files with 33 additions and 97 deletions
-8
View File
@@ -57,14 +57,6 @@ Window::~Window()
SDL_QuitSubSystem(SDL_INIT_VIDEO);
}
Window::_currentMode::_currentMode()
: width(800)
, height(600)
, settings()
, icon(0)
{
}
bool Window::setWindow(int width, int height, WindowSettings *settings)
{
WindowSettings f;
+2 -4
View File
@@ -111,10 +111,8 @@ private:
struct _currentMode
{
_currentMode();
int width;
int height;
int width = 800;
int height = 600;
WindowSettings settings;
Object::StrongRef<love::image::ImageData> icon;