There are many places where a number of functions that perform very
similar tasks are present in a class. Often this common code can be abstracted
out into a single function, which is parameterized to perform the different
tasks required. A common example of this kind of thing is a class that implements
both NewL
and NewLC
. Rather than
duplicate the code in both functions, NewL
can just call NewLC
,
performing a CleanupStack::Pop
afterwards.