diff options
author | Noel Grandin <noel@peralex.com> | 2015-02-11 13:20:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-02-23 09:26:58 +0200 |
commit | ba233e87efddf0a6751b35784dca1c805364ff3b (patch) | |
tree | 9d7c8a4256e688c2d47cb6ecf580ac196c4da2c0 /odk/examples/DevelopersGuide | |
parent | a2fa9e2468aa5c4fd4b610c5d0ebc8959e87a072 (diff) |
remove unnecessary parenthesis in return statements
found with
$ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;'
Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
Diffstat (limited to 'odk/examples/DevelopersGuide')
4 files changed, 9 insertions, 9 deletions
diff --git a/odk/examples/DevelopersGuide/Database/sdbcx.java b/odk/examples/DevelopersGuide/Database/sdbcx.java index ddb263cd938d..26813ff08dc3 100644 --- a/odk/examples/DevelopersGuide/Database/sdbcx.java +++ b/odk/examples/DevelopersGuide/Database/sdbcx.java @@ -98,7 +98,7 @@ public class sdbcx xMSF = UnoRuntime.queryInterface( XMultiServiceFactory.class, rXsmgr ); } - return ( xMSF ); + return xMSF; } diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/unix/nativeview.c b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/unix/nativeview.c index 4cb341ef5137..7f4bc1472d58 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/unix/nativeview.c +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/unix/nativeview.c @@ -59,7 +59,7 @@ JNIEXPORT jint JNICALL Java_NativeView_getNativeWindowSystemType (JNIEnv * env, jobject obj_this) { - return (SYSTEM_XWINDOW); + return SYSTEM_XWINDOW; } /*****************************************************************************/ @@ -106,7 +106,7 @@ JNIEXPORT jlong JNICALL Java_NativeView_getNativeWindow /* Free the drawing surface */ awt.FreeDrawingSurface(ds); - return ((jlong)drawable); + return (jlong)drawable; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.c b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.c index 84173a0e546a..750364c01cce 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.c +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/nativelib/windows/nativeview.c @@ -63,7 +63,7 @@ static LRESULT APIENTRY NativeViewWndProc( HWND , UINT , WPARAM , LPARAM ); JNIEXPORT jint JNICALL Java_NativeView_getNativeWindowSystemType (JNIEnv * env, jobject obj_this) { - return (SYSTEM_WIN32); + return SYSTEM_WIN32; } /***************************************************************************** @@ -126,7 +126,7 @@ JNIEXPORT jlong JNICALL Java_NativeView_getNativeWindow SetProp( hWnd, OLD_PROC_KEY, (HANDLE)hFuncPtr ); } - return ((jlong)hWnd); + return (jlong)hWnd; } /***************************************************************************** diff --git a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_java/FlatXml.java b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_java/FlatXml.java index 70bab16fff3f..d999bd2df718 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_java/FlatXml.java +++ b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_java/FlatXml.java @@ -76,7 +76,7 @@ public class FlatXml implements XImportFilter, XExportFilter, XServiceName, // --- XServiceName --- public String getServiceName() { - return( __serviceName ); + return __serviceName; } // --- XServiceInfo --- @@ -87,10 +87,10 @@ public class FlatXml implements XImportFilter, XExportFilter, XServiceName, return false; } public String getImplementationName() { - return( this.getClass().getName() ); + return this.getClass().getName(); } public String[] getSupportedServiceNames() { - return( __supportedServiceNames ); + return __supportedServiceNames; } public com.sun.star.uno.Type[] getTypes() { @@ -106,7 +106,7 @@ public class FlatXml implements XImportFilter, XExportFilter, XServiceName, } catch( java.lang.Exception exception ) { return null; } - return( typeReturn ); + return typeReturn; } public boolean importer(PropertyValue[] aSourceData, XDocumentHandler xDocHandler, String[] msUserData) |