diff options
author | David Tardon <dtardon@redhat.com> | 2011-05-17 12:46:12 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-05-18 06:05:42 +0200 |
commit | 481bc5b5edda1c2b2dfbcab12b84ef9f69bf96b4 (patch) | |
tree | 7472690464987e7e5462bee2031cf9a383d6ca26 | |
parent | 4e745ff02fc0b9779786a95149d0ca5ffe5b0ed9 (diff) |
simplify
-rw-r--r-- | sfx2/source/config/evntconf.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sfx2/source/config/evntconf.cxx b/sfx2/source/config/evntconf.cxx index b4b4b88982..476c49b8a7 100644 --- a/sfx2/source/config/evntconf.cxx +++ b/sfx2/source/config/evntconf.cxx @@ -273,14 +273,7 @@ void SfxEventConfiguration::ConfigureEvent( rtl::OUString aName, const SvxMacro& SvxMacro *pMacro = NULL; if ( rMacro.GetMacName().Len() ) pMacro = new SvxMacro( rMacro.GetMacName(), rMacro.GetLibName(), rMacro.GetScriptType() ); - if ( pDoc ) - { - PropagateEvent_Impl( pDoc, aName, pMacro ); - } - else - { - PropagateEvent_Impl( NULL, aName, pMacro ); - } + PropagateEvent_Impl( pDoc ? pDoc : 0, aName, pMacro ); } // ------------------------------------------------------------------------------------------------------- |