From f31cd528b98319f608bd9de20fa33707c2fc3767 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Sat, 17 Nov 2001 23:59:43 +0000 Subject: [PATCH] changes to get this code to build when DEBUG_profile_verbose is set. r/sr=no one git-svn-id: svn://10.0.0.236/trunk@108409 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/profile/src/nsProfile.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/profile/src/nsProfile.cpp b/mozilla/profile/src/nsProfile.cpp index af7a0f7da25..4e37bab1fbe 100644 --- a/mozilla/profile/src/nsProfile.cpp +++ b/mozilla/profile/src/nsProfile.cpp @@ -477,7 +477,7 @@ nsProfile::StartupWithArgs(nsICmdLineService *cmdLineArgs, PRBool canInteract) if (uilocale && uilocale[0]) { #ifdef DEBUG_profile_verbose nsCAutoString temp1; temp1.AssignWithConversion(uilocale); - printf(" install new UILocaleName: %s\n", NS_STATIC_CAST(const char*, temp1)); + printf(" install new UILocaleName: %s\n", temp1.get()); #endif rv = chromeRegistry->SelectLocaleForProfile(uilocale, NS_ConvertUTF8toUCS2(fileStr).get()); @@ -488,7 +488,7 @@ nsProfile::StartupWithArgs(nsICmdLineService *cmdLineArgs, PRBool canInteract) if (contentlocale && contentlocale[0]) { #ifdef DEBUG_profile_verbose nsCAutoString temp2; temp2.AssignWithConversion(contentlocale); - printf(" install new mContentLocaleName: %s\n", NS_STATIC_CAST(const char*, temp2)); + printf(" install new mContentLocaleName: %s\n", temp2.get()); #endif rv = chromeRegistry->SelectLocaleForProfile(contentlocale, NS_ConvertUTF8toUCS2(fileStr).get()); @@ -1576,10 +1576,10 @@ nsProfile::CreateNewProfileWithLocales(const PRUnichar* profileName, #if defined(DEBUG_profile_verbose) nsCAutoString temp1; temp1.AssignWithConversion(uiLocale); - printf(" uiLocale=%s\n", NS_STATIC_CAST(const char*, temp1)); + printf(" uiLocale=%s\n", temp1.get()); nsCAutoString temp2; temp2.AssignWithConversion(contentLocale); - printf(" contentLocale=%s\n", NS_STATIC_CAST(const char*, temp2)); + printf(" contentLocale=%s\n", temp2.get()); #endif nsXPIDLCString pathBuf; @@ -1615,7 +1615,7 @@ nsProfile::CreateNewProfileWithLocales(const PRUnichar* profileName, rv = profDefaultsDir->GetUnicodePath(getter_Copies(profilePath)); if (NS_SUCCEEDED(rv)) { nsCAutoString temp5; temp5.AssignWithConversion(profilePath); - printf(" profDefaultsDir is set to: %s\n", NS_STATIC_CAST(const char*, temp5)); + printf(" profDefaultsDir is set to: %s\n", temp5.get()); } #endif } @@ -2276,7 +2276,7 @@ NS_IMETHODIMP nsProfile::CloneProfile(const PRUnichar* newProfile) printf("ProfileManager : Cloned CurrentProfile\n"); nsCAutoString temp; temp.AssignWithConversion(newProfile); - printf("The new profile is ->%s<-\n", NS_STATIC_CAST(const char*, temp)); + printf("The new profile is ->%s<-\n", temp.get()); } #endif