diff options
author | Johannes Schickel | 2009-10-04 16:26:43 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-10-04 16:26:43 +0000 |
commit | da7006094373217edd00f051ef907a4e815742b6 (patch) | |
tree | db5c6fecad4a6bf9c3084fd384a03ee62825398c /engines/sci/gui | |
parent | b8e740c1670874ab34963f080061863e96536d9a (diff) | |
download | scummvm-rg350-da7006094373217edd00f051ef907a4e815742b6.tar.gz scummvm-rg350-da7006094373217edd00f051ef907a4e815742b6.tar.bz2 scummvm-rg350-da7006094373217edd00f051ef907a4e815742b6.zip |
Make "_picRect" local to gui_windowmgr.cpp and mark it as const.
svn-id: r44617
Diffstat (limited to 'engines/sci/gui')
-rw-r--r-- | engines/sci/gui/gui_windowmgr.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/sci/gui/gui_windowmgr.cpp b/engines/sci/gui/gui_windowmgr.cpp index eb66566aa5..8a71ecbae7 100644 --- a/engines/sci/gui/gui_windowmgr.cpp +++ b/engines/sci/gui/gui_windowmgr.cpp @@ -34,7 +34,9 @@ namespace Sci { -Common::Rect _picRect(0,10,320, 200); +namespace { +const Common::Rect s_picRect(0, 10, 320, 200); +} // end of anonymous namespace // window styles enum { @@ -68,7 +70,7 @@ SciGUIwindowMgr::SciGUIwindowMgr(EngineState *state, SciGUIgfx *gfx) windowList.AddToFront(wmgrPortH); - _picWind = NewWindow(_picRect, 0, 0, kTransparent | kNoFrame, 0, 1); + _picWind = NewWindow(s_picRect, 0, 0, kTransparent | kNoFrame, 0, 1); } SciGUIwindowMgr::~SciGUIwindowMgr() { |