diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-13 14:57:08 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-14 02:23:45 +0100 |
commit | e341d3353e30be084da5b1c1758f8de25519159a (patch) | |
tree | 853d07fb0e8d724f5a047b4bf0a6d0d95f5a8802 /sw/inc/calbck.hxx | |
parent | 0ec458926072457103cc9461cd908b8993d50402 (diff) |
SwDepend: cosmetics
Change-Id: I6b20b0b3b301811cdd426a26cc40e12498516c2f
Diffstat (limited to 'sw/inc/calbck.hxx')
-rw-r--r-- | sw/inc/calbck.hxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx index 54d9b18df127..d1c93f559237 100644 --- a/sw/inc/calbck.hxx +++ b/sw/inc/calbck.hxx @@ -27,6 +27,7 @@ #include <hintids.hxx> #include <hints.hxx> + class SwModify; class SwClientIter; class SfxPoolItem; @@ -200,7 +201,7 @@ class SW_DLLPUBLIC SwDepend: public SwClient SwClient *pToTell; public: - SwDepend() : pToTell(0) {} + SwDepend() : pToTell(nullptr) {} SwDepend(SwClient *pTellHim, SwModify *pDepend) : SwClient(pDepend), pToTell(pTellHim) {} SwClient* GetToTell() { return pToTell; } @@ -217,10 +218,7 @@ protected: pToTell->ModifyNotification(pOldValue, pNewValue); } virtual void SwClientNotify( const SwModify& rModify, const SfxHint& rHint ) SAL_OVERRIDE - { - if ( pToTell ) - pToTell->SwClientNotifyCall( rModify, rHint ); - } + { if(pToTel) pToTell->SwClientNotifyCall(rModify, rHint); } }; class SwClientIter : public sw::Ring<SwClientIter> |