Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-03-15 10:11:44 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-03-15 10:11:44 (GMT)
commit5ecb53176dfb36ad41c4454f9185ed07a3b9d2c0 (patch)
tree1c93c77edf3ad1b6be5d49c98f491a79dd1c1396 /lib
parentb4e4b3875a5f31e79415dea17edf48744a5e4573 (diff)
Fix compilation with firefox
Diffstat (limited to 'lib')
-rw-r--r--lib/src/GeckoContentHandler.cpp2
-rw-r--r--lib/src/sugar-browser.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/src/GeckoContentHandler.cpp b/lib/src/GeckoContentHandler.cpp
index 3903185..8b6c9fb 100644
--- a/lib/src/GeckoContentHandler.cpp
+++ b/lib/src/GeckoContentHandler.cpp
@@ -53,7 +53,7 @@ GeckoContentHandler::PromptForSaveToFile (nsIHelperAppLauncher *aLauncher,
NS_UTF16ToCString(nsString(aDefaultFile), NS_CSTRING_ENCODING_UTF8, defaultFile);
- nsCOMPtr <nsILocalFile> destFile(do_CreateInstance(NS_LOCAL_FILE_CONTRACTID));
+ nsCOMPtr <nsILocalFile> destFile(do_CreateInstance("@mozilla.org/file/local;1"));
NS_ENSURE_TRUE(destFile, NS_ERROR_FAILURE);
const char * suggested = defaultFile.get();
diff --git a/lib/src/sugar-browser.cpp b/lib/src/sugar-browser.cpp
index 8bf5878..a8304fd 100644
--- a/lib/src/sugar-browser.cpp
+++ b/lib/src/sugar-browser.cpp
@@ -519,7 +519,7 @@ sugar_browser_save_uri(SugarBrowser *browser,
rv = NewURI(uri, getter_AddRefs(sourceURI));
NS_ENSURE_SUCCESS(rv, FALSE);
- nsCOMPtr<nsILocalFile> destFile = do_CreateInstance(NS_LOCAL_FILE_CONTRACTID);
+ nsCOMPtr<nsILocalFile> destFile = do_CreateInstance("@mozilla.org/file/local;1");
NS_ENSURE_TRUE(destFile, FALSE);
destFile->InitWithNativePath(nsCString(filename));
@@ -550,7 +550,7 @@ sugar_browser_save_document(SugarBrowser *browser,
nsCString cFile(filename);
- nsCOMPtr<nsILocalFile> destFile = do_CreateInstance(NS_LOCAL_FILE_CONTRACTID);
+ nsCOMPtr<nsILocalFile> destFile = do_CreateInstance("@mozilla.org/file/local;1");
NS_ENSURE_TRUE(destFile, FALSE);
destFile->InitWithNativePath(cFile);
@@ -563,7 +563,7 @@ sugar_browser_save_document(SugarBrowser *browser,
g_string_append (path, " Files");
nsCOMPtr<nsILocalFile> filesFolder;
- filesFolder = do_CreateInstance (NS_LOCAL_FILE_CONTRACTID);
+ filesFolder = do_CreateInstance ("@mozilla.org/file/local;1");
filesFolder->InitWithNativePath (nsCString(path->str));
g_string_free (path, TRUE);