There is bug in documentation.
If you look on function TString::Data()
(root.cern.ch/root/html526/TStrin … tring:Data)
you can see:
char * Data() const
{ return (char*)(this+1); }
It looks … suspicious
Indeed in source code (core/base/inc/TString.h) I found:
const char *Data() const { return fData; }
It seems that automatically generated documentation are wrong
for cases when one file contains few classes.
If you will look 15 lines above you see that this is
function from TStringRef class (not TString).
And this is my point. The “description” of function
was taken from wrong class.