diff options
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/GlobalHistory.cpp | 6 | ||||
-rw-r--r-- | embed/mozilla/mozilla-embed.cpp | 2 |
2 files changed, 1 insertions, 7 deletions
diff --git a/embed/mozilla/GlobalHistory.cpp b/embed/mozilla/GlobalHistory.cpp index 034c8a94c..65091725f 100644 --- a/embed/mozilla/GlobalHistory.cpp +++ b/embed/mozilla/GlobalHistory.cpp @@ -22,13 +22,7 @@ #include "ephy-embed-shell.h" #include "GlobalHistory.h" -#include "nsCOMPtr.h" -#include "nsISupportsArray.h" -#include "nsIFactory.h" -#include "nsIServiceManager.h" #include "nsString.h" -#include "nsReadableUtils.h" -#include "nsIRequestObserver.h" NS_IMPL_ISUPPORTS2(MozGlobalHistory, nsIGlobalHistory, nsIBrowserHistory) diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp index 0e69d58fb..ad78db187 100644 --- a/embed/mozilla/mozilla-embed.cpp +++ b/embed/mozilla/mozilla-embed.cpp @@ -1084,7 +1084,7 @@ impl_print (EphyEmbed *embed, nsCOMPtr<nsIPrintSettings> options; result = wrapper->GetPrintSettings(getter_AddRefs(options)); - g_assert (NS_SUCCEEDED (result)); + if (!NS_SUCCEEDED (result)) return G_FAILED; MozillaCollatePrintSettings(info, options); |