Fixed cppcheck warning about const parameter
This commit is contained in:
@@ -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!
|
// not supported yet!
|
||||||
return false;
|
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);
|
bool swap_required = _opt.check(Options::Swap) || (Endian::local() == Endian::MSB);
|
||||||
|
|
||||||
|
|||||||
@@ -110,8 +110,8 @@ private:
|
|||||||
|
|
||||||
bool supports( const OMFormat::uint8 version ) const;
|
bool supports( const OMFormat::uint8 version ) const;
|
||||||
|
|
||||||
bool read_ascii(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, Options& _opt) const;
|
bool read_binary(std::istream& _is, BaseImporter& _bi, const Options& _opt) const;
|
||||||
|
|
||||||
typedef OMFormat::Header Header;
|
typedef OMFormat::Header Header;
|
||||||
typedef OMFormat::Chunk::Header ChunkHeader;
|
typedef OMFormat::Chunk::Header ChunkHeader;
|
||||||
|
|||||||
Reference in New Issue
Block a user