Skip to content

Commit 36f4226

Browse files
committed
cleanup
1 parent c1fbfb5 commit 36f4226

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dlib/image_processing/full_object_detection.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,15 @@ namespace dlib
9797
deserialize(item.rect, in);
9898

9999
// Legacy support: read vector<point, 2> and cast to vector<dpoint, 2>
100-
if (version == 1) {
100+
if (version == 1)
101+
{
101102
std::vector<point> legacy_parts;
102103
deserialize(legacy_parts, in);
103104
item.parts = std::vector<dpoint>(legacy_parts.begin(), legacy_parts.end());
104105
}
105-
106-
else { // version 2 - deserialize into vector<dpoint, 2>
106+
else
107+
{
108+
// version 2 - deserialize into vector<dpoint, 2>
107109
deserialize(item.parts, in);
108110
}
109111

0 commit comments

Comments
 (0)