diff options
Diffstat (limited to 'binary/src/dactylUtils.cpp')
-rw-r--r-- | binary/src/dactylUtils.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/binary/src/dactylUtils.cpp b/binary/src/dactylUtils.cpp index 230a06d3..a2a9e883 100644 --- a/binary/src/dactylUtils.cpp +++ b/binary/src/dactylUtils.cpp @@ -70,8 +70,8 @@ typedef nsString nsSubstring; class autoDropPrincipals { public: - autoDropPrincipals(JSContext *context, JSPrincipals *principals) : mContext(context), mJSPrincipals(principals) {} - ~autoDropPrincipals() { + autoDropPrincipals(JSContext *context, JSPrincipals *principals) : mContext(context), mJSPrincipals(principals) {} + ~autoDropPrincipals() { JSPRINCIPALS_DROP(mContext, mJSPrincipals); } @@ -108,9 +108,9 @@ static JSFunctionSpec gGlobalFun[] = { static dactylUtils* gService = nsnull; dactylUtils::dactylUtils() - : mRuntime(nsnull) + : mRuntime(nsnull) { - NS_ASSERTION(gService == nsnull, "Service already exists"); + NS_ASSERTION(gService == nsnull, "Service already exists"); } dactylUtils::~dactylUtils() @@ -122,14 +122,14 @@ dactylUtils::~dactylUtils() nsresult dactylUtils::Init() { - nsresult rv; - NS_ENSURE_TRUE(!gService, NS_ERROR_UNEXPECTED); + nsresult rv; + NS_ENSURE_TRUE(!gService, NS_ERROR_UNEXPECTED); mRuntimeService = do_GetService("@mozilla.org/js/xpc/RuntimeService;1", &rv); - NS_ENSURE_SUCCESS(rv, rv); + NS_ENSURE_SUCCESS(rv, rv); rv = mRuntimeService->GetRuntime(&mRuntime); - NS_ENSURE_SUCCESS(rv, rv); + NS_ENSURE_SUCCESS(rv, rv); nsCOMPtr<nsIScriptSecurityManager> secman = do_GetService(NS_SCRIPTSECURITYMANAGER_CONTRACTID); @@ -366,4 +366,4 @@ dactylUtils::GetScrollable(nsIDOMElement *aElement, PRUint32 *rval) return NS_OK; } -/* vim:se sts=4 sw=4 et ft=cpp: */ +/* vim:se sts=4 sw=4 et cin ft=cpp: */ |