Fixed cppcheck warning about const parameter

This commit is contained in:
Jan Möbius
2023-12-01 09:17:57 +01:00
parent 21469b8142
commit b87d230df6
2 changed files with 4 additions and 4 deletions

View File

@@ -155,7 +155,7 @@ bool _OMReader_::read(std::istream& _is, BaseImporter& _bi, Options& _opt)
//-----------------------------------------------------------------------------
bool _OMReader_::read_ascii(std::istream& /* _is */, BaseImporter& /* _bi */, Options& /* _opt */) const
bool _OMReader_::read_ascii(std::istream& /* _is */, BaseImporter& /* _bi */, const Options& /* _opt */) const
{
// not supported yet!
return false;
@@ -164,7 +164,7 @@ bool _OMReader_::read_ascii(std::istream& /* _is */, BaseImporter& /* _bi */, Op
//-----------------------------------------------------------------------------
bool _OMReader_::read_binary(std::istream& _is, BaseImporter& _bi, Options& _opt) const
bool _OMReader_::read_binary(std::istream& _is, BaseImporter& _bi, const Options& _opt) const
{
bool swap_required = _opt.check(Options::Swap) || (Endian::local() == Endian::MSB);

View File

@@ -110,8 +110,8 @@ private:
bool supports( const OMFormat::uint8 version ) const;
bool read_ascii(std::istream& _is, BaseImporter& _bi, Options& _opt) const;
bool read_binary(std::istream& _is, BaseImporter& _bi, Options& _opt) const;
bool read_ascii(std::istream& _is, BaseImporter& _bi, const Options& _opt) const;
bool read_binary(std::istream& _is, BaseImporter& _bi, const Options& _opt) const;
typedef OMFormat::Header Header;
typedef OMFormat::Chunk::Header ChunkHeader;