Add (const char*) to silence warning to strcmp.

Originally committed to SVN as r3454.
This commit is contained in:
Amar Takhar 2009-09-02 08:10:59 +00:00
parent eb807fea3d
commit eceb72d95e

View file

@ -73,7 +73,7 @@ wxArrayString FontConfigFontFileLister::DoGetFilesWithFace(wxString facename) {
if (!final) return results;
if (FcPatternGetString(final, FC_FILE, 0, &filename) == FcResultMatch && FcPatternGetInteger(final, FC_INDEX, 0, &fontindex) == FcResultMatch) {
FcPatternGetString(final, FC_FAMILY, fontindex, &gotfamily);
if (strcmp(gotfamily,buffer) == 0) {
if (strcmp((const char*)gotfamily,buffer) == 0) {
results.Add(wxString((char*) filename,csConvLocal));
}
}