WaE: MSVC2008 C2220 unsafe mix of types in operation

This commit is contained in:
Caolán McNamara
2012-04-20 20:01:54 +01:00
parent 6f9971f3b9
commit b2fdaed465
2 changed files with 7 additions and 5 deletions

View File

@@ -73,7 +73,7 @@ protected:
SbiImage* pImage; // the Image
SbiBreakpoints* pBreaks; // Breakpoints
SbClassData* pClassData;
sal_Bool mbVBACompat;
bool mbVBACompat;
sal_Int32 mnType;
SbxObjectRef pDocObject; // an impl object ( used by Document Modules )
bool bIsProxyModule;
@@ -139,8 +139,8 @@ public:
sal_Bool ExceedsLegacyModuleSize();
void fixUpMethodStart( bool bCvtToLegacy, SbiImage* pImg = NULL ) const;
bool HasExeCode();
sal_Bool IsVBACompat() const;
void SetVBACompat( sal_Bool bCompat );
bool IsVBACompat() const;
void SetVBACompat( bool bCompat );
sal_Int32 GetModuleType() { return mnType; }
void SetModuleType( sal_Int32 nType ) { mnType = nType; }
bool isProxyModule() { return bIsProxyModule; }

View File

@@ -1077,15 +1077,17 @@ void ClearUnoObjectsInRTL_Impl( StarBASIC* pBasic )
if( ((StarBASIC*)p) != pBasic )
ClearUnoObjectsInRTL_Impl_Rek( (StarBASIC*)p );
}
sal_Bool SbModule::IsVBACompat() const
bool SbModule::IsVBACompat() const
{
return mbVBACompat;
}
void SbModule::SetVBACompat( sal_Bool bCompat )
void SbModule::SetVBACompat( bool bCompat )
{
mbVBACompat = bCompat;
}
// Run a Basic-subprogram
sal_uInt16 SbModule::Run( SbMethod* pMeth )
{