| 1964 | |
| 1965 | |
| 1966 | XMLError XMLDocument::LoadFile( const char* filename ) |
| 1967 | { |
| 1968 | Clear(); |
| 1969 | FILE* fp = callfopen( filename, "rb" ); |
| 1970 | if ( !fp ) { |
| 1971 | SetError( XML_ERROR_FILE_NOT_FOUND, filename, 0 ); |
| 1972 | return _errorID; |
| 1973 | } |
| 1974 | LoadFile( fp ); |
| 1975 | fclose( fp ); |
| 1976 | return _errorID; |
| 1977 | } |
| 1978 | |
| 1979 | // This is likely overengineered template art to have a check that unsigned long value incremented |
| 1980 | // by one still fits into size_t. If size_t type is larger than unsigned long type |
no test coverage detected