summaryrefslogtreecommitdiff
path: root/sfx2/source/statbar/stbitem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/statbar/stbitem.cxx')
-rw-r--r--sfx2/source/statbar/stbitem.cxx17
1 files changed, 8 insertions, 9 deletions
diff --git a/sfx2/source/statbar/stbitem.cxx b/sfx2/source/statbar/stbitem.cxx
index 3de5bcd9ab84..942279b4b04a 100644
--- a/sfx2/source/statbar/stbitem.cxx
+++ b/sfx2/source/statbar/stbitem.cxx
@@ -33,7 +33,6 @@
#include <sfx2/stbitem.hxx>
#include "sfxtypes.hxx"
#include <sfx2/msg.hxx>
-#include "arrdecl.hxx"
#include <sfx2/bindings.hxx>
#include <sfx2/msgpool.hxx>
#include <sfx2/module.hxx>
@@ -644,19 +643,19 @@ SfxStatusBarControl* SfxStatusBarControl::CreateControl
{
SfxStbCtrlFactArr_Impl &rFactories = *pFactories;
for ( sal_uInt16 nFactory = 0; nFactory < rFactories.size(); ++nFactory )
- if ( rFactories[nFactory]->nTypeId == aSlotType &&
- ( ( rFactories[nFactory]->nSlotId == 0 ) ||
- ( rFactories[nFactory]->nSlotId == nSlotID) ) )
- return rFactories[nFactory]->pCtor( nSlotID, nStbId, *pBar );
+ if ( rFactories[nFactory].nTypeId == aSlotType &&
+ ( ( rFactories[nFactory].nSlotId == 0 ) ||
+ ( rFactories[nFactory].nSlotId == nSlotID) ) )
+ return rFactories[nFactory].pCtor( nSlotID, nStbId, *pBar );
}
}
SfxStbCtrlFactArr_Impl &rFactories = pApp->GetStbCtrlFactories_Impl();
for ( sal_uInt16 nFactory = 0; nFactory < rFactories.size(); ++nFactory )
- if ( rFactories[nFactory]->nTypeId == aSlotType &&
- ( ( rFactories[nFactory]->nSlotId == 0 ) ||
- ( rFactories[nFactory]->nSlotId == nSlotID) ) )
- return rFactories[nFactory]->pCtor( nSlotID, nStbId, *pBar );
+ if ( rFactories[nFactory].nTypeId == aSlotType &&
+ ( ( rFactories[nFactory].nSlotId == 0 ) ||
+ ( rFactories[nFactory].nSlotId == nSlotID) ) )
+ return rFactories[nFactory].pCtor( nSlotID, nStbId, *pBar );
}
return NULL;