Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
a9d554a4
"torchvision/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "8a16e12f3a7f10d124b26aeb7975cd2bf4a81695"
Commit
a9d554a4
authored
Aug 05, 2020
by
Davis King
Browse files
minor cleanup
parent
ff3023f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
dlib/image_loader/png_loader.cpp
dlib/image_loader/png_loader.cpp
+5
-1
No files found.
dlib/image_loader/png_loader.cpp
View file @
a9d554a4
...
@@ -46,6 +46,10 @@ namespace dlib
...
@@ -46,6 +46,10 @@ namespace dlib
{
{
}
}
// no copying this object.
FileInfo
(
const
FileInfo
&
)
=
delete
;
FileInfo
&
operator
=
(
const
FileInfo
&
)
=
delete
;
~
FileInfo
()
~
FileInfo
()
{
{
if
(
fp_
!=
nullptr
)
fclose
(
fp_
);
if
(
fp_
!=
nullptr
)
fclose
(
fp_
);
...
@@ -174,7 +178,7 @@ namespace dlib
...
@@ -174,7 +178,7 @@ namespace dlib
void
png_loader
::
read_image
(
std
::
unique_ptr
<
FileInfo
>
file_info
)
void
png_loader
::
read_image
(
std
::
unique_ptr
<
FileInfo
>
file_info
)
{
{
if
(
!
file_info
)
throw
image_load_error
(
std
::
string
(
"png_loader: invalid file_info, it is NULL"
)
);
DLIB_CASSERT
(
file_info
);
ld_
.
reset
(
new
LibpngData
);
ld_
.
reset
(
new
LibpngData
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment