Commits

Daniel Rentz  committed de66470

vbasupportdev300_HG: windows compiler warnings

  • Participants
  • Parent commits 560445b

Comments (0)

Files changed (4)

File basic/source/classes/sbxmod.cxx

     SbObjModule* pMod = PTR_CAST(SbObjModule,pVar);
     if ( pMod )
     {
-        sal_Int16 nType = pMod->GetModuleType();
-        if ( pMod->GetModuleType() == ModuleType::DOCUMENT ) 
+        if ( pMod->GetModuleType() == ModuleType::DOCUMENT )
         {
             Reference< XMultiServiceFactory > xFactory = comphelper::getProcessServiceFactory();
             // Use proxy factory service to create aggregatable proxy.

File basic/source/runtime/methods.cxx

 #include <io.h>
 #endif
 
-using namespace rtl;
-
-#include <basic/sbobjmod.hxx>
+//using namespace rtl;
 
 #include <basic/sbobjmod.hxx>
 

File basic/source/runtime/runtime.cxx

 		p->Broadcast( SBX_HINT_DATAWANTED );
 
 	SbxVariable* pDflt = NULL;
-	if ( bVBAEnabled &&  ( p->GetType() == SbxOBJECT || p->GetType() == SbxVARIANT  ) && ( pDflt = getDefaultProp( p ) ) )
+	if ( bVBAEnabled &&  ( p->GetType() == SbxOBJECT || p->GetType() == SbxVARIANT  ) && (( pDflt = getDefaultProp( p ) ) != 0) )
 	{
 		pDflt->Broadcast( SBX_HINT_DATAWANTED );
 		// replacing new p on stack causes object pointed by 

File basic/source/uno/dlgcont.cxx

 }
 
 sal_Bool SAL_CALL
-SfxDialogLibraryContainer:: HasExecutableCode( const ::rtl::OUString& Library ) throw (uno::RuntimeException)
+SfxDialogLibraryContainer::HasExecutableCode( const ::rtl::OUString& /*Library*/ ) throw (uno::RuntimeException)
 {
 	return sal_False; // dialog library has no executable code
 }