]> err.no Git - sope/blobdiff - sope-appserver/NGObjWeb/DynamicElements/WOCheckBox.m
use %p for pointer formats, fixed gcc 4.1 warnings, minor code improvs
[sope] / sope-appserver / NGObjWeb / DynamicElements / WOCheckBox.m
index 72c6d131d5db70d18f56ae8f1d27daa34abd123b..8fc69596e75722aec0e1188cbcd1e2d2c463d39b 100644 (file)
@@ -93,7 +93,8 @@
   [_response appendContentHTMLAttributeValue:
               OWFormElementName(self, _ctx)];
   WOResponse_AddCString(_response, "\" value=\"");
-  [_response appendContentHTMLAttributeValue:([v length] > 0) ? v : @"1"];
+  [_response appendContentHTMLAttributeValue:
+              ([v isNotEmpty] ? v : (NSString *)@"1")];
   WOResponse_AddCString(_response, "\"");
   
   if ([self->disabled boolValueInComponent:[_ctx component]]) {