From 14fb72aeb0cc6a75d7326298607887dbc7d9fdd7 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 13 Nov 2004 21:35:48 +0000 Subject: Better fix for bug #158202, thanks to Christian Biesinger. 2004-11-13 Christian Persch * embed/mozilla/MozillaPrivate.cpp: Better fix for bug #158202, thanks to Christian Biesinger. --- embed/mozilla/MozillaPrivate.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'embed/mozilla/MozillaPrivate.cpp') diff --git a/embed/mozilla/MozillaPrivate.cpp b/embed/mozilla/MozillaPrivate.cpp index 58789dca4..b47a79b31 100644 --- a/embed/mozilla/MozillaPrivate.cpp +++ b/embed/mozilla/MozillaPrivate.cpp @@ -66,8 +66,7 @@ MozillaPrivate::GetPrinterList () rv = printer->GetData(data); NS_ENSURE_SUCCESS(rv, nsnull); - const nsACString& cData = NS_ConvertUCS2toUTF8 (data); - printers = g_list_prepend (printers, g_strdup (PromiseFlatCString (cData).get())); + printers = g_list_prepend (printers, g_strdup (NS_ConvertUCS2toUTF8 (data).get())); } return g_list_reverse (printers); -- cgit v1.2.3