From 616afb27c23def5661b3466d6fc86fd1c65c0082 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Fri, 6 Mar 2009 00:09:38 +0100 Subject: Microoptimization in compile speed No need to include localplayer.h from inventorywindow.h --- src/gui/inventorywindow.cpp | 1 + src/gui/inventorywindow.h | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index fea86b81..e4896063 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -38,6 +38,7 @@ #include "../inventory.h" #include "../item.h" +#include "../localplayer.h" #include "../units.h" #include "../resources/iteminfo.h" diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h index 45796e74..e1196f78 100644 --- a/src/gui/inventorywindow.h +++ b/src/gui/inventorywindow.h @@ -22,12 +22,12 @@ #ifndef INVENTORYWINDOW_H #define INVENTORYWINDOW_H -#include -#include - #include "window.h" -#include "../localplayer.h" +#include "../inventory.h" + +#include +#include class Item; class ItemContainer; -- cgit v1.2.3-70-g09d2