It considers the handle member of the outer class to be shadowed by the
parameter of an inner class member function.
}
-void Serial::DeviceState::get_from(const Handle &handle)
+void Serial::DeviceState::get_from(const Handle &h)
{
- tcgetattr(*handle, &state);
+ tcgetattr(*h, &state);
}
-void Serial::DeviceState::apply_to(const Handle &handle)
+void Serial::DeviceState::apply_to(const Handle &h)
{
- if(tcsetattr(*handle, TCSADRAIN, &state)==-1)
+ if(tcsetattr(*h, TCSADRAIN, &state)==-1)
throw system_error("tcsetattr");
}
}
-void Serial::DeviceState::get_from(const Handle &handle)
+void Serial::DeviceState::get_from(const Handle &h)
{
- GetCommState(*handle, &state);
+ GetCommState(*h, &state);
}
-void Serial::DeviceState::apply_to(const Handle &handle)
+void Serial::DeviceState::apply_to(const Handle &h)
{
- if(SetCommState(*handle, &state)==0)
+ if(SetCommState(*h, &state)==0)
throw system_error("SetCommState");
}