.doc/ext/rays/camera.cpp in rays-0.1.47 vs .doc/ext/rays/camera.cpp in rays-0.1.48
- old
+ new
@@ -123,11 +123,11 @@
VALUE device_names(VALUE self)
{
auto names = Rays::get_camera_device_names();
std::vector<Value> v;
- for (auto it = names.begin(), end = names.end(); it != end; ++it)
- v.emplace_back(value(it->c_str()));
+ for (const auto& name : names)
+ v.emplace_back(name.c_str());
return value(v.size(), &v[0]);
}
static Class cCamera;