OVH Cloud OVH Cloud

error: virtual outside class declaration

1 réponse
Avatar
Laurent Rathle
Je souhaiterai savoir si vous pourriez me donner une piste pour résoudre le
problème suivant. Je compile un programme qui contient les fichiers suivant
:

kdesalgdi.h

avec dans la partie public :

virtual const void* GetEmbedFontData( ImplFontData* pFont, const
sal_Unicode* pUnicodes, sal_Int32* pWidths, FontSubsetInfo& rInfo, long*
pDataLen );


kdesalgdi.cxx

avec :

virtual const void* KDESalGraphics::GetEmbedFontData( ImplFontData* pFont,
const sal_Unicode* pUnicodes, sal_Int32* pWidths, FontSubsetInfo& rInfo,
long* pDataLen )
{
return NULL;
}

Le compilateur me renvoie l'erreur "error: virtual outside class
declaration" .

Merci,

--
Laurent Rathle
lrathle@teaser.fr

1 réponse

Avatar
Fabien LE LEZ
On Sun, 11 Jan 2004 10:49:08 +0100, Laurent Rathle
wrote:

virtual const void* KDESalGraphics::GetEmbedFontData( ImplFontData* pFont,


On ne doit pas répéter le "virtual" ici.

--
;-)

http://www.gotw.ca/gotw/063.htm
http://www.gotw.ca/gotw/067.htm#2