[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
Re: [XaraXtreme-dev] Text rendering implementation (3)
- From: Martin Wuerthner <lists@xxxxxxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 13:53:22 +0200
- Subject: Re: [XaraXtreme-dev] Text rendering implementation (3)
In message <c35d28104e.martin@xxxxxxxxxxxxxxxxxxx>
Martin Wuerthner <lists@xxxxxxxxxxxxxxx> wrote:
> In message <442CEE99.7050708@xxxxxxxx>
> Phil Martin <phil@xxxxxxxx> wrote:
>
>> Could you fix the warnings about unhandled enumeration values in
>> fontbase.cpp in your next patches, please?
>
> OK, I will have a go at them (as far as I can see, they have always
> been there).
Find attached a patch to remove the compiler warnings for fontbase.cpp
Martin
Index: wxOil/fontbase.cpp
===================================================================
--- wxOil/fontbase.cpp (Revision 749)
+++ wxOil/fontbase.cpp (Arbeitskopie)
@@ -220,6 +220,8 @@
return FALSE;
#endif
break;
+ default:
+ break;
}
ERROR3("Unknown font class passed to OILFontMan::IsOkToCall()");
return FALSE;
@@ -480,6 +482,8 @@
return NULL;
#endif
break;
+ default:
+ break;
}
ERROR3("OILFontMan::CreateNewFont() - Unknown font class");
return NULL;
@@ -527,6 +531,8 @@
return NULL;
#endif
break;
+ default:
+ break;
}
ERROR3("OILFontMan::CreateNewFont() - Unknown font class");
return NULL;
@@ -827,7 +833,8 @@
#endif
ERROR1IF(Success==FALSE, FALSE, _R(IDE_FONTMAN_NOFTOUTLINE));
break;
-
+ default:
+ break;
}
ERROR3IF(Success==FALSE,"Unknown font class in OILFontMan::GetCharPath");
return Success;