From 80cdfe4ce7e8959fff4bbf85fc471e38ecbadf7a Mon Sep 17 00:00:00 2001 From: "mkaply%us.ibm.com" Date: Thu, 3 May 2001 21:15:07 +0000 Subject: [PATCH] More bad line endings git-svn-id: svn://10.0.0.236/trunk@93839 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/netwerk/base/src/nsStdURL.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/mozilla/netwerk/base/src/nsStdURL.cpp b/mozilla/netwerk/base/src/nsStdURL.cpp index 09a4e1e9dae..29e37b53e8f 100644 --- a/mozilla/netwerk/base/src/nsStdURL.cpp +++ b/mozilla/netwerk/base/src/nsStdURL.cpp @@ -40,7 +40,7 @@ #include "nsNetCID.h" #if defined(XP_PC) && !defined(XP_OS2) -#include +#include #include #endif @@ -1036,19 +1036,19 @@ nsStdURL::GetFile(nsIFile * *aFile) } } - if ((path.CharAt(0) == '/' && path.CharAt(1) == '/')) { + if ((path.CharAt(0) == '/' && path.CharAt(1) == '/')) { // unc path -#ifdef DEBUG_dougt - printf("+++ accessing UNC path\n"); -#endif - } - else if (path.CharAt(1) != ':') { - char driveLetter = toupper( _getdrive() ) + 'A' - 1; - path.Insert(driveLetter, 0); +#ifdef DEBUG_dougt + printf("+++ accessing UNC path\n"); +#endif + } + else if (path.CharAt(1) != ':') { + char driveLetter = toupper( _getdrive() ) + 'A' - 1; + path.Insert(driveLetter, 0); path.Insert(":\\", 1); - } - - path.ReplaceChar('/', '\\'); + } + + path.ReplaceChar('/', '\\'); #endif nsUnescape((char*)path.get());