Kaydet (Commit) e2a38e65 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

inline trivial SwModify functions

Change-Id: I0dda2a53e49073a75b9ce14d7aa4b5088eeb2fd7
üst 3fc8c700
...@@ -141,10 +141,13 @@ class SW_DLLPUBLIC SwModify: public SwClient ...@@ -141,10 +141,13 @@ class SW_DLLPUBLIC SwModify: public SwClient
bool bInSwFntCache : 1; bool bInSwFntCache : 1;
// mba: IMHO this method should be pure virtual // mba: IMHO this method should be pure virtual
virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) SAL_OVERRIDE; virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) SAL_OVERRIDE
{ NotifyClients( pOld, pNew ); };
public: public:
SwModify(); SwModify()
: SwClient(nullptr), pRoot(nullptr), bModifyLocked(false), bLockClientList(false), bInDocDTOR(false), bInCache(false), bInSwFntCache(false)
{}
// broadcasting: send notifications to all clients // broadcasting: send notifications to all clients
void NotifyClients( const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue ); void NotifyClients( const SfxPoolItem *pOldValue, const SfxPoolItem *pNewValue );
...@@ -158,7 +161,10 @@ public: ...@@ -158,7 +161,10 @@ public:
void CallSwClientNotify( const SfxHint& rHint ) const; void CallSwClientNotify( const SfxHint& rHint ) const;
// single argument ctors shall be explicit. // single argument ctors shall be explicit.
explicit SwModify( SwModify *pToRegisterIn ); explicit SwModify( SwModify* pToRegisterIn )
: SwClient(pToRegisterIn), pRoot(nullptr), bModifyLocked(false), bLockClientList(false), bInDocDTOR(false), bInCache(false), bInSwFntCache(false)
{}
virtual ~SwModify(); virtual ~SwModify();
void Add(SwClient *pDepend); void Add(SwClient *pDepend);
......
...@@ -56,27 +56,6 @@ void SwClient::CheckRegistration( const SfxPoolItem* pOld, const SfxPoolItem* ) ...@@ -56,27 +56,6 @@ void SwClient::CheckRegistration( const SfxPoolItem* pOld, const SfxPoolItem* )
} }
} }
SwModify::SwModify()
: SwClient(nullptr), pRoot(nullptr)
{
bModifyLocked = false;
bLockClientList = false;
bInDocDTOR = false;
bInCache = false;
bInSwFntCache = false;
}
SwModify::SwModify( SwModify* pToRegisterIn )
: SwClient( pToRegisterIn ), pRoot( nullptr )
{
bModifyLocked = false;
bLockClientList = false;
bInDocDTOR = false;
bInCache = false;
bInSwFntCache = false;
}
SwModify::~SwModify() SwModify::~SwModify()
{ {
OSL_ENSURE( !IsModifyLocked(), "Modify destroyed but locked." ); OSL_ENSURE( !IsModifyLocked(), "Modify destroyed but locked." );
...@@ -117,11 +96,6 @@ SwModify::~SwModify() ...@@ -117,11 +96,6 @@ SwModify::~SwModify()
} }
} }
void SwModify::Modify( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewValue )
{
NotifyClients( pOldValue, pNewValue );
}
void SwModify::NotifyClients( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewValue ) void SwModify::NotifyClients( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewValue )
{ {
if ( IsInCache() || IsInSwFntCache() ) if ( IsInCache() || IsInSwFntCache() )
......
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