Re: QHash: two questions concerning memleak and key type
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
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