window_.show();
object_.show();
- foreach (const int& x, xs_)
+ foreach (const int x, xs_)
{
- foreach (const int& y, ys_)
+ foreach (const int y, ys_)
{
queueCallback(
ModifyCheckCallback(
control_.setPosition(50, 10);
elm_icon_standard_set(control_, "home");
-
- return;
}
void setup()
window_.show();
control_.show();
- vector<string>::iterator it;
- for (it = icons_.begin(); it != icons_.end(); it++)
+ foreach (const std::string& name, icons_)
{
queueCallback(
ModifyCheckCallback(
- boost::bind(&IconStandardTest::setStandard, boost::ref(*this), *it),
- boost::bind(&IconStandardTest::checkStandard, boost::ref(*this), *it)
+ boost::bind(&IconStandardTest::setStandard, boost::ref(*this), boost::cref(name)),
+ boost::bind(&IconStandardTest::checkStandard, boost::ref(*this), boost::cref(name))
)
);
}
{
window_.show();
- vector<int>::iterator it;
- for (it = degrees_.begin(); it != degrees_.end(); it++)
+ foreach (const int degree, degrees_)
{
queueCallback(
ModifyCheckCallback(
- boost::bind(&Window::rotate, boost::ref(window_), *it),
- boost::bind(&Window::checkRotation, boost::ref(window_), *it)
+ boost::bind(&Window::rotate, boost::ref(window_), degree),
+ boost::bind(&Window::checkRotation, boost::ref(window_), degree)
)
);
}