avoid several implicit conversions, replace several old C-casts, other minor changes

This commit is contained in:
wmayer
2019-09-18 23:27:54 +02:00
parent 54df95baa4
commit 2f59bb50eb
15 changed files with 92 additions and 74 deletions

View File

@@ -719,7 +719,7 @@ bool MeshInput::LoadPLY (std::istream &inp)
str >> space_format_string >> std::ws
>> format_string >> space_format_version
>> std::ws >> version;
if (!str || !str.eof() ||
if (/*!str || !str.eof() ||*/
!std::isspace(space_format_string) ||
!std::isspace(space_format_version)) {
return false;
@@ -749,7 +749,7 @@ bool MeshInput::LoadPLY (std::istream &inp)
str >> space_element_name >> std::ws
>> name >> space_name_count >> std::ws
>> count;
if (!str || !str.eof() ||
if (/*!str || !str.eof() ||*/
!std::isspace(space_element_name) ||
!std::isspace(space_name_count)) {
return false;