From 09add9b5f67b022a1ad8a84a32a72c20250d349f Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 16 Mar 2009 16:13:53 +0000 Subject: Fix several spacing issues --- diff --git a/browser-plugin/Makefile.am b/browser-plugin/Makefile.am index cbf7674..cb0e9f2 100644 --- a/browser-plugin/Makefile.am +++ b/browser-plugin/Makefile.am @@ -1,5 +1,5 @@ plugindir = ${libdir}/mozilla/plugins -plugin_LTLIBRARIES = libevince-plugin.la +plugin_LTLIBRARIES = libevince-plugin.la libevince_plugin_la_SOURCES = \ glue.cpp \ diff --git a/browser-plugin/glue.cpp b/browser-plugin/glue.cpp index 795eae8..18713d7 100644 --- a/browser-plugin/glue.cpp +++ b/browser-plugin/glue.cpp @@ -185,7 +185,7 @@ NPError NPP_SetValue (NPP instance, NPNVariable variable, void *value) { return NPERR_NO_ERROR; } - + NPError NPP_New (NPMIMEType mimetype, NPP instance, @@ -225,9 +225,9 @@ NPP_GetValue(NPP instance, NPPVariable variable, void *value) case NPPVpluginNeedsXEmbed: *(PRBool *)value = PR_TRUE; break; - case NPPVpluginScriptableNPObject: - *(NPObject **)value = plugin->GetScriptableNPObject (); - break; + case NPPVpluginScriptableNPObject: + *(NPObject **)value = plugin->GetScriptableNPObject (); + break; default: err = NPERR_GENERIC_ERROR; @@ -277,7 +277,7 @@ NPError NPN_PostURL (NPP instance, const char *url, const char *window, uint32_t len, const char *buf, NPBool file) { return NPNFuncs.posturl (instance, url, window, len, buf, file); -} +} NPError NPN_RequestRead (NPStream* stream, NPByteRange* rangeList) { diff --git a/browser-plugin/plugin.cpp b/browser-plugin/plugin.cpp index 3bfe351..2d4cdb2 100644 --- a/browser-plugin/plugin.cpp +++ b/browser-plugin/plugin.cpp @@ -106,7 +106,7 @@ Plugin::ClearLoadJob () g_signal_handlers_disconnect_by_func ( mLoadJob, (gpointer)LoadJobFinishedCallback, - reinterpret_cast(this)); + reinterpret_cast(this)); g_object_unref (mLoadJob); mLoadJob = NULL; @@ -130,8 +130,8 @@ Plugin::Load (const char *fname) g_free (uri); } -NPObject * -Plugin::GetScriptableNPObject () +NPObject * +Plugin::GetScriptableNPObject () { if (!mScriptableObject) { mScriptableObject = NPN_CreateObject ( diff --git a/browser-plugin/plugin.h b/browser-plugin/plugin.h index c44e937..a4cd560 100644 --- a/browser-plugin/plugin.h +++ b/browser-plugin/plugin.h @@ -38,7 +38,7 @@ class Plugin { void FindNext (const char *text); void FindPrevious (const char *text); void ShowLoadingError (); - NPObject *GetScriptableNPObject (); + NPObject *GetScriptableNPObject (); private: void UpdateSizingMode (); diff --git a/browser-plugin/scriptable.cpp b/browser-plugin/scriptable.cpp index 9ede075..ff053ef 100644 --- a/browser-plugin/scriptable.cpp +++ b/browser-plugin/scriptable.cpp @@ -161,8 +161,7 @@ bool ScriptablePluginObjectBase::_Construct (NPObject *npobj, const NPVariant *args, uint32_t argCount, NPVariant *result) { - return ((ScriptablePluginObjectBase *)npobj)->Construct ( - args, argCount, result); + return ((ScriptablePluginObjectBase *)npobj)->Construct (args, argCount, result); } NPObject * @@ -252,7 +251,7 @@ ScriptablePluginObject::Invoke (NPIdentifier name, const NPVariant *args, return false; } plugin->FindPrevious(NPVARIANT_TO_STRING (args[0]).utf8characters); - } + } } bool -- cgit v0.9.1