diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-11-14 04:47:53 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-11-14 04:47:53 +0800 |
commit | abe27ec1ce52bb620dac85541eaf77de2dd54f71 (patch) | |
tree | 60a659d85a610ef88d01280a23ffebc1e1c8bc61 | |
parent | ebcbba7543b242c2bcb9d43e91636f30a8793bb6 (diff) | |
download | gsoc2013-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.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/MozillaPrivate.cpp | 5 |
2 files changed, 9 insertions, 2 deletions
@@ -1,5 +1,11 @@ 2004-11-13 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/MozillaPrivate.cpp: + + Fix FMR. Fixes bug #158202. + +2004-11-13 Christian Persch <chpe@cvs.gnome.org> + * configure.ac: * embed/mozilla/ContentHandler.h: * embed/mozilla/EphyAboutRedirector.cpp: 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); |