Make int conversion operators const

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libebml@839 a6f86f6d-0131-4f8e-9e7b-e335508773d5
This commit is contained in:
Moritz Bunkus 2012-09-04 07:36:24 +00:00
parent d5f30db3c6
commit c2ab2859ac
2 changed files with 8 additions and 8 deletions

View File

@ -71,10 +71,10 @@ class EBML_DLL_API EbmlSInteger : public EbmlElement {
virtual bool IsSmallerThan(const EbmlElement *Cmp) const; virtual bool IsSmallerThan(const EbmlElement *Cmp) const;
operator int8(); operator int8() const;
operator int16(); operator int16() const;
operator int32(); operator int32() const;
operator int64(); operator int64() const;
void SetDefaultValue(int64 aValue) {assert(!DefaultISset()); DefaultValue = aValue; SetDefaultIsSet();} void SetDefaultValue(int64 aValue) {assert(!DefaultISset()); DefaultValue = aValue; SetDefaultIsSet();}

View File

@ -55,10 +55,10 @@ EbmlSInteger::EbmlSInteger(const EbmlSInteger & ElementToClone)
{ {
} }
EbmlSInteger::operator int8() {return int8(Value);} EbmlSInteger::operator int8() const {return int8(Value);}
EbmlSInteger::operator int16() {return int16(Value);} EbmlSInteger::operator int16() const {return int16(Value);}
EbmlSInteger::operator int32() {return int32(Value);} EbmlSInteger::operator int32() const {return int32(Value);}
EbmlSInteger::operator int64() {return Value;} EbmlSInteger::operator int64() const {return Value;}
/*! /*!
\todo handle exception on errors \todo handle exception on errors