- case wxMarkupSpanAttributes::No:
- (font.*func)(noValue);
- break;
-
- case wxMarkupSpanAttributes::Yes:
- (font.*func)(yesValue);
- break;
+ void operator()(wxMarkupSpanAttributes::OptionalBool isIt,
+ wxFont& font,
+ void (wxFont::*func)(T),
+ T noValue,
+ T yesValue)
+ {
+ switch ( isIt )
+ {
+ case wxMarkupSpanAttributes::Unspecified:
+ break;
+
+ case wxMarkupSpanAttributes::No:
+ (font.*func)(noValue);
+ break;
+
+ case wxMarkupSpanAttributes::Yes:
+ (font.*func)(yesValue);
+ break;
+ }