Explorar o código

fix inefficient checking for 'url' emptiness

escherstair %!s(int64=6) %!d(string=hai) anos
pai
achega
946d64282b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code/X3D/X3DImporter_Networking.cpp

+ 1 - 1
code/X3D/X3DImporter_Networking.cpp

@@ -93,7 +93,7 @@ void X3DImporter::ParseNode_Networking_Inline()
 		// at this place new group mode created and made current, so we can name it.
 		if(!def.empty()) NodeElement_Cur->ID = def;
 
-		if(load && (url.size() > 0))
+		if(load && !url.empty())
 		{
 			std::string full_path = mpIOHandler->CurrentDirectory() + url.front();