Răsfoiți Sursa

Merge pull request #315 from Dmitry-Me/orderPatternsAsTheyAreSearched

Order patterns the same way they are searched
Lee Thomason 11 ani în urmă
părinte
comite
5ea4f3cb77
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      tinyxml2.cpp

+ 2 - 2
tinyxml2.cpp

@@ -550,14 +550,14 @@ char* XMLDocument::Identify( char* p, XMLNode** node )
 	// These strings define the matching patters:
     static const char* xmlHeader		= { "<?" };
     static const char* commentHeader	= { "<!--" };
-    static const char* dtdHeader		= { "<!" };
     static const char* cdataHeader		= { "<![CDATA[" };
+    static const char* dtdHeader		= { "<!" };
     static const char* elementHeader	= { "<" };	// and a header for everything else; check last.
 
     static const int xmlHeaderLen		= 2;
     static const int commentHeaderLen	= 4;
-    static const int dtdHeaderLen		= 2;
     static const int cdataHeaderLen		= 9;
+    static const int dtdHeaderLen		= 2;
     static const int elementHeaderLen	= 1;
 
     TIXMLASSERT( sizeof( XMLComment ) == sizeof( XMLUnknown ) );		// use same memory pool