X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fsymbol.cpp;h=7dd1c5228107dc22c5a30f8309cfd940d2cc505d;hp=1a8ef59cd2a5d0d15f0cd6d2e147c631456b587d;hb=f6f99c4d47762da9e3d73a2f5ec6f062e82505b8;hpb=27d8eeed808afec4b319cea040d62365b65d49bc diff --git a/ginac/symbol.cpp b/ginac/symbol.cpp index 1a8ef59c..7dd1c522 100644 --- a/ginac/symbol.cpp +++ b/ginac/symbol.cpp @@ -43,9 +43,9 @@ GINAC_IMPLEMENT_REGISTERED_CLASS(symbol, basic) symbol::symbol() : inherited(TINFO_symbol) { debugmsg("symbol default constructor", LOGLEVEL_CONSTRUCT); - serial=next_serial++; - name=autoname_prefix()+ToString(serial); - asexinfop=new assigned_ex_info; + serial = next_serial++; + name = autoname_prefix()+ToString(serial); + asexinfop = new assigned_ex_info; setflag(status_flags::evaluated); } @@ -64,9 +64,9 @@ symbol::symbol(const symbol & other) void symbol::copy(const symbol & other) { inherited::copy(other); - name=other.name; - serial=other.serial; - asexinfop=other.asexinfop; + name = other.name; + serial = other.serial; + asexinfop = other.asexinfop; ++asexinfop->refcount; } @@ -95,9 +95,9 @@ void symbol::destroy(bool call_parent) symbol::symbol(const string & initname) : inherited(TINFO_symbol) { debugmsg("symbol constructor from string", LOGLEVEL_CONSTRUCT); - name=initname; - serial=next_serial++; - asexinfop=new assigned_ex_info; + name = initname; + serial = next_serial++; + asexinfop = new assigned_ex_info; setflag(status_flags::evaluated); }