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:
parent
d5f30db3c6
commit
c2ab2859ac
@ -71,10 +71,10 @@ class EBML_DLL_API EbmlSInteger : public EbmlElement {
|
||||
|
||||
virtual bool IsSmallerThan(const EbmlElement *Cmp) const;
|
||||
|
||||
operator int8();
|
||||
operator int16();
|
||||
operator int32();
|
||||
operator int64();
|
||||
operator int8() const;
|
||||
operator int16() const;
|
||||
operator int32() const;
|
||||
operator int64() const;
|
||||
|
||||
void SetDefaultValue(int64 aValue) {assert(!DefaultISset()); DefaultValue = aValue; SetDefaultIsSet();}
|
||||
|
||||
|
@ -55,10 +55,10 @@ EbmlSInteger::EbmlSInteger(const EbmlSInteger & ElementToClone)
|
||||
{
|
||||
}
|
||||
|
||||
EbmlSInteger::operator int8() {return int8(Value);}
|
||||
EbmlSInteger::operator int16() {return int16(Value);}
|
||||
EbmlSInteger::operator int32() {return int32(Value);}
|
||||
EbmlSInteger::operator int64() {return Value;}
|
||||
EbmlSInteger::operator int8() const {return int8(Value);}
|
||||
EbmlSInteger::operator int16() const {return int16(Value);}
|
||||
EbmlSInteger::operator int32() const {return int32(Value);}
|
||||
EbmlSInteger::operator int64() const {return Value;}
|
||||
|
||||
/*!
|
||||
\todo handle exception on errors
|
||||
|
Loading…
x
Reference in New Issue
Block a user