svnno****@sourc*****
svnno****@sourc*****
2009年 8月 9日 (日) 18:47:18 JST
Revision: 2538 http://sourceforge.jp/projects/kita/svn/view?view=rev&revision=2538 Author: nogu Date: 2009-08-09 18:47:18 +0900 (Sun, 09 Aug 2009) Log Message: ----------- use foreach Modified Paths: -------------- kita/branches/KITA-KDE4/kita/src/prefs/preferences.cpp Modified: kita/branches/KITA-KDE4/kita/src/prefs/preferences.cpp =================================================================== --- kita/branches/KITA-KDE4/kita/src/prefs/preferences.cpp 2009-08-09 08:02:09 UTC (rev 2537) +++ kita/branches/KITA-KDE4/kita/src/prefs/preferences.cpp 2009-08-09 09:47:18 UTC (rev 2538) @@ -77,24 +77,27 @@ void Preferences::load() { - for (int i = 0, j = m_pageList.count(); i < j; i++) { - m_pageList.at(i)->load(); + AbstractPrefPage* page; + foreach (page, m_pageList) { + page->load(); } enableButtonApply(false); } void Preferences::apply() { - for (int i = 0, j = m_pageList.count(); i < j; i++) { - m_pageList.at(i)->apply(); + AbstractPrefPage* page; + foreach (page, m_pageList) { + page->apply(); } enableButtonApply(false); } void Preferences::reset() { - for (int i = 0, j = m_pageList.count(); i < j; i++) { - m_pageList.at(i)->reset(); + AbstractPrefPage* page; + foreach (page, m_pageList) { + page->reset(); } }