Changeset 7027 in vbox for trunk/src/VBox/Main/xml/Settings.cpp
- Timestamp:
- Feb 20, 2008 10:30:22 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r6310 r7027 34 34 35 35 36 /** 36 /** 37 37 * Global module initialization structure. 38 38 * … … 163 163 164 164 if (strcmp (aValue, "true") == 0 || 165 strcmp (aValue, "yes") == 0 || 166 strcmp (aValue, "on") == 0) 165 strcmp (aValue, "1") == 0) 166 /* This contradicts the XML Schema's interpretation of boolean: */ 167 //strcmp (aValue, "yes") == 0 || 168 //strcmp (aValue, "on") == 0) 167 169 return true; 168 170 else if (strcmp (aValue, "false") == 0 || 169 strcmp (aValue, "no") == 0 || 170 strcmp (aValue, "off") == 0) 171 strcmp (aValue, "0") == 0) 172 /* This contradicts the XML Schema's interpretation of boolean: */ 173 //strcmp (aValue, "no") == 0 || 174 //strcmp (aValue, "off") == 0) 171 175 return false; 172 176 … … 284 288 unsigned int aExtra /* = 0 */) 285 289 { 290 /* Convert to the canonical form according to XML Schema */ 286 291 stdx::char_auto_ptr result (duplicate_chars (aValue ? "true" : "false")); 287 292 return result; … … 765 770 } 766 771 767 /** 772 /** 768 773 * Composes a single message for the given error. The caller must free the 769 774 * returned string using RTStrFree() when no more necessary. … … 928 933 929 934 /* set our error handlers */ 930 xmlSchemaSetParserErrors (schemaCtxt, ValidityErrorCallback, 935 xmlSchemaSetParserErrors (schemaCtxt, ValidityErrorCallback, 931 936 ValidityWarningCallback, &errorStr); 932 937 xmlSchemaSetParserStructuredErrors (schemaCtxt, … … 1117 1122 #endif 1118 1123 1119 /* perform cleanup when necessary */ 1124 /* perform cleanup when necessary */ 1120 1125 if (ctxt->deleteStreamOnClose) 1121 1126 delete ctxt->stream; … … 1215 1220 1216 1221 /* static */ 1217 xmlParserInputPtr XmlTreeBackend::ExternalEntityLoader (const char *aURI, 1218 const char *aID, 1222 xmlParserInputPtr XmlTreeBackend::ExternalEntityLoader (const char *aURI, 1223 const char *aID, 1219 1224 xmlParserCtxtPtr aCtxt) 1220 1225 {
Note:
See TracChangeset
for help on using the changeset viewer.