X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Findexed.cpp;h=8151b080a4b2f685a96e2769495e393a1773d7a4;hp=0d26bd7256cccf84df9f6909f9d418ba34d3e034;hb=7d10a252470cc6501b2c66bf9d6774c79b093761;hpb=19c8f943c15dcc0d946fb4d5fef11e487d34857a diff --git a/ginac/indexed.cpp b/ginac/indexed.cpp index 0d26bd72..8151b080 100644 --- a/ginac/indexed.cpp +++ b/ginac/indexed.cpp @@ -48,7 +48,7 @@ indexed::indexed() indexed::~indexed() { debugmsg("indexed destructor",LOGLEVEL_DESTRUCT); - destroy(0); + destroy(false); } indexed::indexed(const indexed & other) @@ -61,7 +61,7 @@ const indexed & indexed::operator=(const indexed & other) { debugmsg("indexed operator=",LOGLEVEL_ASSIGNMENT); if (this != &other) { - destroy(1); + destroy(true); copy(other); } return *this; @@ -102,7 +102,7 @@ indexed::indexed(const ex & i1, const ex & i2) : inherited(i1,i2) } indexed::indexed(const ex & i1, const ex & i2, const ex & i3) - : inherited(i1,i2,i3) + : inherited(i1,i2,i3) { debugmsg("indexed constructor from ex,ex,ex",LOGLEVEL_CONSTRUCT); tinfo_key=TINFO_indexed; @@ -110,7 +110,7 @@ indexed::indexed(const ex & i1, const ex & i2, const ex & i3) } indexed::indexed(const ex & i1, const ex & i2, const ex & i3, const ex & i4) - : inherited(i1,i2,i3,i4) + : inherited(i1,i2,i3,i4) { debugmsg("indexed constructor from ex,ex,ex,ex",LOGLEVEL_CONSTRUCT); tinfo_key=TINFO_indexed; @@ -190,7 +190,7 @@ void indexed::print(std::ostream & os, unsigned upper_precedence) const } void indexed::printcsrc(std::ostream & os, unsigned type, - unsigned upper_precedence) const + unsigned upper_precedence) const { debugmsg("indexed print csrc",LOGLEVEL_PRINT); print(os,upper_precedence); @@ -225,7 +225,7 @@ exvector indexed::get_indices(void) const * @see ex::diff */ ex indexed::derivative(const symbol & s) const { - return _ex0(); + return _ex0(); } int indexed::compare_same_type(const basic & other) const