Browse Source

Code cleanup. [ci skip]

Yao Wei Tjong 姚伟忠 12 years ago
parent
commit
423d250def
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Engine/Resource/XMLFile.cpp

+ 1 - 1
Source/Engine/Resource/XMLFile.cpp

@@ -100,7 +100,7 @@ bool XMLFile::Load(Deserializer& source)
     }
     }
 
 
     XMLElement rootElem = GetRoot();
     XMLElement rootElem = GetRoot();
-    String inherit = rootElem ? rootElem.GetAttribute("inherit") : String::EMPTY;
+    String inherit = rootElem.GetAttribute("inherit");
     if (!inherit.Empty())
     if (!inherit.Empty())
     {
     {
         // The existence of this attribute indicates this is an RFC 5261 patch file
         // The existence of this attribute indicates this is an RFC 5261 patch file