From 362f9205217bc8b877999de63a9ae2c024e740f2 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 6 Nov 2007 20:25:36 +0000 Subject: [PATCH] Fix problems with visual C.net 2003 Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3043 --- src/gui/sdl_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/sdl_gui.cpp b/src/gui/sdl_gui.cpp index e91d4154..59b40233 100644 --- a/src/gui/sdl_gui.cpp +++ b/src/gui/sdl_gui.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: sdl_gui.cpp,v 1.2 2007-10-31 11:37:38 qbix79 Exp $ */ +/* $Id: sdl_gui.cpp,v 1.3 2007-11-06 20:25:36 qbix79 Exp $ */ #include "SDL.h" #include "../libs/gui_tk/gui_tk.h" @@ -374,7 +374,7 @@ public: HelpWindow(GUI::Screen *parent, int x, int y, Section *section) : MessageBox(parent, x, y, 580, "", "") { std::string title(section->GetName()); - title[0] = std::toupper(title[0]); + title.at(0) = std::toupper(title.at(0)); setTitle("Help for "+title); std::string name = section->GetName(); std::transform(name.begin(), name.end(), name.begin(), (int(*)(int))std::toupper); @@ -549,7 +549,7 @@ public: void actionExecuted(GUI::ActionEventSource *b, const GUI::String &arg) { GUI::String sname = arg; - sname[0] = std::tolower(sname[0]); + sname.at(0) = std::tolower(sname.at(0)); Section *sec; if (arg == "Close" || arg == "Cancel") { running = false;