Anonymous avatar Anonymous committed d00ce76

#i10000# Avoid warnings

Comments (0)

Files changed (2)

extensions/source/activex/main/SOActiveX.cpp

 {
     // create desktop
 	CComPtr<IDispatch> pdispDesktop;
-    HRESULT hr = GetIDispByFunc( mpDispFactory, L"createInstance", &CComVariant( L"com.sun.star.frame.Desktop" ), 1, pdispDesktop );
+    CComVariant aDesktopServiceName( L"com.sun.star.frame.Desktop" );
+
+    HRESULT hr = GetIDispByFunc( mpDispFactory, L"createInstance", &aDesktopServiceName, 1, pdispDesktop );
 	if( !pdispDesktop || !SUCCEEDED( hr ) ) return hr;
 
 	// create tree of frames
 	if( !pdispChildren || !SUCCEEDED( hr ) ) return hr;
 
 	CComVariant aFrames;
-	hr = ExecuteFunc( pdispChildren, L"queryFrames", &CComVariant( 4 ), 1, &aFrames );
+    CComVariant nFlag( 4 );
+	hr = ExecuteFunc( pdispChildren, L"queryFrames", &nFlag, 1, &aFrames );
     if ( SUCCEEDED( hr ) )
     {
 		if ( ( aFrames.vt == ( VT_ARRAY | VT_DISPATCH ) || aFrames.vt == ( VT_ARRAY | VT_VARIANT ) ) 

extensions/source/nsplugin/source/so_main.cxx

             _exit(255);
         }
 #else 
+        (void) read_fd; /* avoid warning about unused parameter */
         Security sec;
         oslProcess hProcess = 0;
         rtl_uString * ar_args [] = {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.