aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozillaPrivate.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-11-14 04:47:53 +0800
committerChristian Persch <chpe@src.gnome.org>2004-11-14 04:47:53 +0800
commitabe27ec1ce52bb620dac85541eaf77de2dd54f71 (patch)
tree60a659d85a610ef88d01280a23ffebc1e1c8bc61 /embed/mozilla/MozillaPrivate.cpp
parentebcbba7543b242c2bcb9d43e91636f30a8793bb6 (diff)
downloadgsoc2013-epiphany-abe27ec1ce52bb620dac85541eaf77de2dd54f71.tar
gsoc2013-epiphany-abe27ec1ce52bb620dac85541eaf77de2dd54f71.tar.gz
gsoc2013-epiphany-abe27ec1ce52bb620dac85541eaf77de2dd54f71.tar.bz2
gsoc2013-epiphany-abe27ec1ce52bb620dac85541eaf77de2dd54f71.tar.lz
gsoc2013-epiphany-abe27ec1ce52bb620dac85541eaf77de2dd54f71.tar.xz
gsoc2013-epiphany-abe27ec1ce52bb620dac85541eaf77de2dd54f71.tar.zst
gsoc2013-epiphany-abe27ec1ce52bb620dac85541eaf77de2dd54f71.zip
Fix FMR. Fixes bug #158202.
2004-11-13 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozillaPrivate.cpp: Fix FMR. Fixes bug #158202.
Diffstat (limited to 'embed/mozilla/MozillaPrivate.cpp')
-rw-r--r--embed/mozilla/MozillaPrivate.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/embed/mozilla/MozillaPrivate.cpp b/embed/mozilla/MozillaPrivate.cpp
index 74afc615e..58789dca4 100644
--- a/embed/mozilla/MozillaPrivate.cpp
+++ b/embed/mozilla/MozillaPrivate.cpp
@@ -25,6 +25,7 @@
#include <nsIServiceManager.h>
#include <nsISimpleEnumerator.h>
#include <nsISupportsPrimitives.h>
+#include <nsPromiseFlatString.h>
/* IMPORTANT. Put only code that use internal mozilla strings (nsAutoString for
* example) in this file. Note that you cannot use embed strings here,
@@ -65,8 +66,8 @@ MozillaPrivate::GetPrinterList ()
rv = printer->GetData(data);
NS_ENSURE_SUCCESS(rv, nsnull);
- const char *name = NS_ConvertUCS2toUTF8 (data).get();
- printers = g_list_prepend (printers, g_strdup (name));
+ const nsACString& cData = NS_ConvertUCS2toUTF8 (data);
+ printers = g_list_prepend (printers, g_strdup (PromiseFlatCString (cData).get()));
}
return g_list_reverse (printers);