Re: QHash: two questions concerning memleak and key type

2011-08-29 Thread Frank Reininghaus
Hi Stefan, 2011/7/29 Stefan Majewsky: > Hi, > > I have a C++ class that implements a Composite pattern. Relevant code follows: > > -8<-8<-8<-8<-8<-8<-8<-8<-8<- > > class Compound : public Entity { >    void addChild(const QByteArray& key, Entity* newChild) >

QHash: two questions concerning memleak and key type

2011-07-29 Thread Stefan Majewsky
Hi, I have a C++ class that implements a Composite pattern. Relevant code follows: -8<-8<-8<-8<-8<-8<-8<-8<-8<- class Compound : public Entity { void addChild(const QByteArray& key, Entity* newChild) { Q_D(Compound); Entity*& child