aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/FilePicker.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-04-19 17:51:42 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-04-19 17:51:42 +0800
commite527da5ea75e15dba79b88a95619e378f14e9043 (patch)
tree6a66d2c707d8e992e3000fdea0ca9a7482f9d8b3 /embed/mozilla/FilePicker.cpp
parent6478cbdce358376ecc2ff37c975de89dc7038f51 (diff)
downloadgsoc2013-epiphany-e527da5ea75e15dba79b88a95619e378f14e9043.tar
gsoc2013-epiphany-e527da5ea75e15dba79b88a95619e378f14e9043.tar.gz
gsoc2013-epiphany-e527da5ea75e15dba79b88a95619e378f14e9043.tar.bz2
gsoc2013-epiphany-e527da5ea75e15dba79b88a95619e378f14e9043.tar.lz
gsoc2013-epiphany-e527da5ea75e15dba79b88a95619e378f14e9043.tar.xz
gsoc2013-epiphany-e527da5ea75e15dba79b88a95619e378f14e9043.tar.zst
gsoc2013-epiphany-e527da5ea75e15dba79b88a95619e378f14e9043.zip
from galeon. Don't assume sizeof(gsize) == sizeof(guint) makes epiphany
2003-04-19 Marco Pesenti Gritti <marco@it.gnome.org> * embed/mozilla/FilePicker.cpp: from galeon. Don't assume sizeof(gsize) == sizeof(guint) makes epiphany build better on 64-bit architectures
Diffstat (limited to 'embed/mozilla/FilePicker.cpp')
-rw-r--r--embed/mozilla/FilePicker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/embed/mozilla/FilePicker.cpp b/embed/mozilla/FilePicker.cpp
index 277a5a3a3..8ae5429f7 100644
--- a/embed/mozilla/FilePicker.cpp
+++ b/embed/mozilla/FilePicker.cpp
@@ -143,9 +143,9 @@ NS_IMETHODIMP GFilePicker::SetFilterIndex(PRInt32 aFilterIndex)
/* attribute wstring defaultString; */
NS_IMETHODIMP GFilePicker::GetDefaultString(PRUnichar * *aDefaultString)
{
- guint bytesRead(0), bytesWritten(0);
+ gsize bytesWritten;
gchar *utf8DefaultString = g_filename_to_utf8(mDefaultString.get(), -1,
- &bytesRead,
+ NULL,
&bytesWritten, NULL);
*aDefaultString = ToNewUnicode(NS_ConvertUTF8toUCS2(utf8DefaultString));
@@ -157,10 +157,10 @@ NS_IMETHODIMP GFilePicker::SetDefaultString(const PRUnichar *aDefaultString)
{
if (aDefaultString)
{
- guint bytesRead(0), bytesWritten(0);
+ gsize bytesWritten;
gchar *localeDefaultString =
g_filename_from_utf8(NS_ConvertUCS2toUTF8(aDefaultString).get(),
- -1, &bytesRead,
+ -1, NULL,
&bytesWritten, NULL);
mDefaultString = localeDefaultString;
g_free(localeDefaultString);