diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2021-02-10 10:42:05 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2021-02-10 10:42:38 +0100 |
commit | 5fea2f87dcb4d64f25072cc66d8909c7945e2345 (patch) | |
tree | 04f442ee2064f38d3e93d9ddf461d322c5a3ce9f /winsup/cygwin/release/3.2.0 | |
parent | d0e0a59e7880739abe47bf217ee958c6233c6ef7 (diff) | |
download | newlib-5fea2f87dcb4d64f25072cc66d8909c7945e2345.zip newlib-5fea2f87dcb4d64f25072cc66d8909c7945e2345.tar.gz newlib-5fea2f87dcb4d64f25072cc66d8909c7945e2345.tar.bz2 |
Cygwin: fhandler: clean up 'copyto' logic
Analyzing the fhandler::copyto logic shows that the fhandler_base::reset
method was only called from copyto anyway.
Trying to convert reset to a protected method uncovered that the copyto
method is actually thought upside down from an object oriented POV.
Rather than calling copyto, manipulating the object given as parameter,
rename the method to copy_from, which manipulates the calling object
itself with data from the object given as parameter.
Eventually make reset a protected method and rename it to
_copy_from_reset_helper to clarify it's only called from copy_from.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/release/3.2.0')
0 files changed, 0 insertions, 0 deletions