Const TGPicture* GetPicture(const char* name, char** xpm)

Hi Rooters,

TGPicturePool::....
const TGPicture*	GetPicture(const char* name, char** xpm)

should’nt be " char** xpm" const?
In the following code I get warnings:
deprecated conversion from string constant to ‘char*’
because I cant make pixarr and align13 const.

char *align13[] = {..
char *align23[] = {
..
char **pixarr[9] = {
      &align13[0],
..
gClient->GetPicturePool()->GetPicture(Aligns[i].pictname, pixarr[i]);

Cheers
Otto

Hi Otto,

Well, yes, I agree it should be… but it is not, I guess for historical reasons and because of dependency on libAfterImage, on which we don’t have full control. And unfortunately, now, it would be quite tricky to change, for backward compatibility reasons… But we’ll check what can be done and we’ll keep you in touch.

Cheers,
Bertrand.