Browse Source

Suppressing compiler warning

Source commit: 8d2220feffb058b9e9344c6fb1c14a49cca6ea5e
Martin Prikryl 10 years ago
parent
commit
bf49fd22f1
1 changed files with 1 additions and 4 deletions
  1. 1 4
      source/filezilla/ServerPath.cpp

+ 1 - 4
source/filezilla/ServerPath.cpp

@@ -664,10 +664,7 @@ CServerPath::CServerPath(CString subdir, const CServerPath &parent)
           m_Segments.clear();
           subdir=subdir.Mid(pos1+1);
 
-          pos1=subdir.Find( L"[" );
-          int pos2=subdir.Find( L"]" );
-          if (pos1!=-1 || pos2!=-1)
-            DebugFail();
+          DebugAssert(subdir.Find( L"[" )==-1 && subdir.Find( L"]" )==-1);
         }
         int pos=subdir.Find( L"." );
         while(pos!=-1)