From ff822e5f34d2beb6d3e6928ace5bc725d1fe147d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 22 Jun 2011 01:25:40 +0300 Subject: Fix code style. --- src/gui/setupitem.h | 2 +- src/gui/widgets/setuptabscroll.cpp | 10 +++++----- src/gui/widgets/setuptabscroll.h | 2 +- src/utils/paths.cpp | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/gui/setupitem.h b/src/gui/setupitem.h index 686f8a2a7..81f85b0da 100644 --- a/src/gui/setupitem.h +++ b/src/gui/setupitem.h @@ -53,7 +53,7 @@ class SetupItem : public gcn::ActionListener public: enum { - VBOOL, + VBOOL = 0, VSTR, VINT }; diff --git a/src/gui/widgets/setuptabscroll.cpp b/src/gui/widgets/setuptabscroll.cpp index ece4fef8f..c3fd4dee8 100644 --- a/src/gui/widgets/setuptabscroll.cpp +++ b/src/gui/widgets/setuptabscroll.cpp @@ -61,7 +61,7 @@ SetupTabScroll::~SetupTabScroll() void SetupTabScroll::addControl(SetupItem *widget) { - std::map::iterator iter + std::map::iterator iter = mItems.find(widget->getActionEventId()); if (iter != mItems.end()) { @@ -74,7 +74,7 @@ void SetupTabScroll::addControl(SetupItem *widget) void SetupTabScroll::addControl(SetupItem *widget, std::string event) { - std::map::iterator iter + std::map::iterator iter = mItems.find(event); if (iter != mItems.end()) { @@ -87,21 +87,21 @@ void SetupTabScroll::addControl(SetupItem *widget, std::string event) void SetupTabScroll::apply() { - std::map::iterator iter; + std::map::iterator iter; for (iter = mItems.begin(); iter != mItems.end(); ++ iter) (*iter).second->apply((*iter).first); } void SetupTabScroll::cancel() { - std::map::iterator iter; + std::map::iterator iter; for (iter = mItems.begin(); iter != mItems.end(); ++ iter) (*iter).second->cancel((*iter).first); } void SetupTabScroll::externalUpdated() { - std::map::iterator iter; + std::map::iterator iter; for (iter = mItems.begin(); iter != mItems.end(); ++ iter) { SetupItem *widget = (*iter).second; diff --git a/src/gui/widgets/setuptabscroll.h b/src/gui/widgets/setuptabscroll.h index 119756969..78391f29b 100644 --- a/src/gui/widgets/setuptabscroll.h +++ b/src/gui/widgets/setuptabscroll.h @@ -62,7 +62,7 @@ class SetupTabScroll : public SetupTab protected: VertContainer *mContainer; ScrollArea *mScroll; - std::map mItems; + std::map mItems; std::set mAllItems; }; diff --git a/src/utils/paths.cpp b/src/utils/paths.cpp index cae2d1837..8882808fa 100644 --- a/src/utils/paths.cpp +++ b/src/utils/paths.cpp @@ -27,7 +27,7 @@ #include #ifdef WIN32 -#define realpath(N,R) _fullpath((R),(N),_MAX_PATH) +#define realpath(N, R) _fullpath((R), (N), _MAX_PATH) #endif #include "debug.h" -- cgit v1.2.3-70-g09d2