Kaydet (Commit) 5a5731cd authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:expandablemethodds in include/basic..comphelper

Change-Id: I1aa9c12e8839325a9fd98530abc89a3d586ff62e
Reviewed-on: https://gerrit.libreoffice.org/30120Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst d24bc608
......@@ -1420,7 +1420,7 @@ SbMethod* StarBASIC::GetActiveMethod( sal_uInt16 nLevel )
SbModule* StarBASIC::GetActiveModule()
{
if( GetSbData()->pInst && !IsCompilerError() )
if( GetSbData()->pInst && !GetSbData()->bCompilerError )
{
return GetSbData()->pInst->GetActiveModule();
}
......@@ -1471,7 +1471,6 @@ sal_uInt16 StarBASIC::GetCol2() { return GetSbData()->nCol2; }
// Specific to error handler
SbError StarBASIC::GetErrorCode() { return GetSbData()->nCode; }
const OUString& StarBASIC::GetErrorText() { return GetSbData()->aErrMsg; }
bool StarBASIC::IsCompilerError() { return GetSbData()->bCompiler; }
// From 1996-03-29:
// The mapping between the old and the new error codes take place by searching
......@@ -1667,7 +1666,7 @@ bool StarBASIC::CError( SbError code, const OUString& rMsg,
code = (SbError)*new StringErrorInfo( code, rMsg );
}
SetErrorData( code, l, c1, c2 );
GetSbData()->bCompiler = true;
GetSbData()->bCompilerError = true;
bool bRet;
if( GetSbData()->aErrHdl.IsSet() )
{
......@@ -1677,7 +1676,7 @@ bool StarBASIC::CError( SbError code, const OUString& rMsg,
{
bRet = ErrorHdl();
}
GetSbData()->bCompiler = false; // only true for error handler
GetSbData()->bCompilerError = false; // only true for error handler
return bRet;
}
......
......@@ -49,7 +49,7 @@ SbiGlobals::SbiGlobals()
nCode = 0;
nLine = 0;
nCol1 = nCol2 = 0;
bCompiler = false;
bCompilerError = false;
bGlobalInitErr = false;
bRunInit = false;
pTransliterationWrapper = nullptr;
......
......@@ -94,7 +94,7 @@ struct SbiGlobals
SbError nCode;
sal_Int32 nLine;
sal_Int32 nCol1,nCol2; // from... to...
bool bCompiler; // flag for compiler error
bool bCompilerError; // flag for compiler error
bool bGlobalInitErr;
bool bRunInit; // true, if RunInit active from the Basic
OUString aErrMsg; // buffer for GetErrorText()
......
......@@ -192,11 +192,6 @@ void SbxValue::Broadcast( sal_uInt32 )
// If the variable contain a variable or an object, this will be
// addressed.
SbxValue* SbxValue::TheRealValue() const
{
return TheRealValue( true );
}
SbxValue* SbxValue::TheRealValue( bool bObjInObjError ) const
{
SbxValue* p = const_cast<SbxValue*>(this);
......@@ -286,7 +281,7 @@ bool SbxValue::Get( SbxValues& rRes ) const
// If an object or a VARIANT is requested, don't search the real values
SbxValue* p = const_cast<SbxValue*>(this);
if( rRes.eType != SbxOBJECT && rRes.eType != SbxVARIANT )
p = TheRealValue();
p = TheRealValue( true );
if( p )
{
p->Broadcast( SBX_HINT_DATAWANTED );
......
......@@ -76,7 +76,7 @@ namespace canvas
void PropertySetHelper::addProperties( const InputMap& rMap )
{
InputMap aMerged( getPropertyMap() );
InputMap aMerged( maMapEntries );
aMerged.insert( aMerged.end(),
rMap.begin(),
rMap.end() );
......
......@@ -187,7 +187,7 @@ namespace comphelper
bool OAccessibleContextHelper::isAlive() const
{
return !GetBroadcastHelper().bDisposed && !GetBroadcastHelper().bInDispose;
return !rBHelper.bDisposed && !rBHelper.bInDispose;
}
......@@ -200,7 +200,7 @@ namespace comphelper
void OAccessibleContextHelper::ensureDisposed( )
{
if ( !GetBroadcastHelper().bDisposed )
if ( !rBHelper.bDisposed )
{
OSL_ENSURE( 0 == m_refCount, "OAccessibleContextHelper::ensureDisposed: this method _has_ to be called from without your dtor only!" );
acquire();
......
......@@ -134,7 +134,6 @@ public:
static void MakeErrorText( SbError, const OUString& aMsg );
static const OUString& GetErrorText();
static SbError GetErrorCode();
static bool IsCompilerError();
static sal_uInt16 GetVBErrorCode( SbError nError );
static SbError GetSfxFromVBError( sal_uInt16 nError );
bool IsBreak() const { return bBreak; }
......
......@@ -77,7 +77,6 @@ class BASIC_DLLPUBLIC SbxValue : public SbxBase
{
// #55226 Transport additional infos
BASIC_DLLPRIVATE SbxValue* TheRealValue( bool bObjInObjError ) const;
BASIC_DLLPRIVATE SbxValue* TheRealValue() const;
protected:
SbxValues aData; // Data
OUString aPic; // Picture-String
......
......@@ -123,10 +123,6 @@ namespace canvas
*/
bool isPropertyName( const OUString& aPropertyName ) const;
/** Request the currently active map
*/
const InputMap& getPropertyMap() const { return maMapEntries; }
// XPropertySet implementation
css::uno::Reference< css::beans::XPropertySetInfo > getPropertySetInfo() const;
void setPropertyValue( const OUString& aPropertyName,
......
......@@ -233,8 +233,6 @@ namespace comphelper
implGetParentContext();
// access to the base class' broadcast helper/mutex
::cppu::OBroadcastHelper& GetBroadcastHelper() { return rBHelper; }
const ::cppu::OBroadcastHelper& GetBroadcastHelper() const { return rBHelper; }
::osl::Mutex& GetMutex() { return m_aMutex; }
IMutex* getExternalLock( );
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment