Skip to content

Commit

Permalink
BUG: Make JPEGImageIO const correct with m_FileName
Browse files Browse the repository at this point in the history
  • Loading branch information
blowekamp authored and hjmjohnson committed Apr 6, 2024
1 parent 4449a99 commit dba496d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Modules/IO/JPEG/include/itkJPEGImageIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class ITKIOJPEG_EXPORT JPEGImageIO : public ImageIOBase
PrintSelf(std::ostream & os, Indent indent) const override;

void
WriteSlice(std::string & fileName, const void * const buffer);
WriteSlice(const std::string & fileName, const void * const buffer);

bool m_Progressive{ true };

Expand Down
2 changes: 1 addition & 1 deletion Modules/IO/JPEG/src/itkJPEGImageIO.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ JPEGImageIO::Write(const void * buffer)
}

void
JPEGImageIO::WriteSlice(std::string & fileName, const void * const buffer)
JPEGImageIO::WriteSlice(const std::string & fileName, const void * const buffer)
{
// use this class so return will call close
JPEGFileWrapper JPEGfp(fileName.c_str(), "wb");
Expand Down

0 comments on commit dba496d

Please sign in to comment.