]> err.no Git - sope/blobdiff - sope-xml/DOM/DOMXMLOutputter.m
lF fixes
[sope] / sope-xml / DOM / DOMXMLOutputter.m
index bc369b85059065c041050d909a356dbaaa1d5f20..2715849fe548e2be0066324046d34d49bbc05c86 100644 (file)
 
 - (void)pushPrefix:(NSString *)_prefix namespace:(NSString *)_namespace {
   [self _checkPrefixStack];
-  [self->stack addObject:(_prefix)    ? _prefix    : @""];
-  [self->stack addObject:(_namespace) ? _namespace : @""];
+  [self->stack addObject:(_prefix)    ? _prefix    : (NSString *)@""];
+  [self->stack addObject:(_namespace) ? _namespace : (NSString *)@""];
 }
 
 - (void)popPrefixAndNamespace {
     attr          = [_attrs objectAtIndex:j];
     attrNamespace = [attr namespaceURI];
     attrPrefix    = [attr prefix];
-    attrNamespace = (attrNamespace) ? attrNamespace : @"";
-    attrPrefix    = (attrPrefix)    ? attrPrefix    : @"";
+    attrNamespace = (attrNamespace) ? attrNamespace : (NSString *)@"";
+    attrPrefix    = (attrPrefix)    ? attrPrefix    : (NSString *)@"";
 
     if (([attrNamespace length] == 0 && [attrPrefix length] == 0)) continue;