mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
minor cleanup
This commit is contained in:
parent
ff3023f266
commit
a9d554a4ac
@ -46,6 +46,10 @@ namespace dlib
|
||||
{
|
||||
}
|
||||
|
||||
// no copying this object.
|
||||
FileInfo(const FileInfo&) = delete;
|
||||
FileInfo& operator=(const FileInfo&) = delete;
|
||||
|
||||
~FileInfo()
|
||||
{
|
||||
if ( fp_ != nullptr ) fclose( fp_ );
|
||||
@ -174,7 +178,7 @@ namespace dlib
|
||||
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user