Reduced scope of variable

This commit is contained in:
Jan Möbius
2023-08-23 11:04:39 +02:00
parent 56e967da79
commit 08b8299802

View File

@@ -1384,8 +1384,7 @@ bool _PLYReader_::can_u_read(std::istream& _is) const {
elements_.push_back(element);
} else if (keyword == "property") {
std::string tmp1;
std::string tmp2;
std::string tmp1;
// Read first keyword, as it might be a list
_is >> tmp1;
@@ -1448,6 +1447,9 @@ bool _PLYReader_::can_u_read(std::istream& _is) const {
elements_.back().properties_.push_back(property);
} else {
std::string tmp2;
// as this is not a list property, read second value of property
_is >> tmp2;