[Libreoffice] sw: serial numbers
Michael Stahl
mstahl at redhat.com
Wed Nov 23 02:16:22 PST 2011
hi all,
i am currently wondering:
in sw, a bunch of classes define serial numbers, e.g. SwIndex, SwNode, etc.
in a DBG_UTIL build, there is a global counter, and the ctor increments
the counter and assigns its value to a member, so every instance has a
unique serial.
what is the point of this? how would this help in debugging, given that
the pointer values of the instances ought to be unique as long as they live?
in other words, any reason why i shouldn't remove serials?
More information about the LibreOffice
mailing list