info-inventor-dev
[Top] [All Lists]

char * vs. const char * in SoText[23].c++

To: info-inventor-dev@xxxxxxxxxxx
Subject: char * vs. const char * in SoText[23].c++
From: Jan Prikryl <prikryl@xxxxxxxx>
Date: Wed, 23 May 2001 10:57:37 +0200
Sender: owner-info-inventor-dev@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
Hi,

when compiling current CVS version of Inventor with gcc prerelease
version 3.0 20010327, I got

| SoText2.c++: In method `SbBool SoBitmapFontCache::convertToUCS 
| (unsigned int, const SoMFString &)':
| SoText2.c++:780: cannot convert `char **' to `const char **' for 
| argument `2' to `iconv (void *, const char **, size_t *, char **, 
| size_t *)'

and the same for SoText3.c++ .

Patches attached (it's actually just defining `input' to be `const char*').

-- jan

-----------------------------------+----------------------------------------
  Jan Prikryl                  icq | vr|vis center for virtual reality and
  <prikryl@xxxxxxxx>      83242638 | visualisation     http://www.vrvis.at
-----------------------------------+----------------------------------------

Attachment: iv.patch
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>