Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0b784bd6
Kaydet (Commit)
0b784bd6
authored
Haz 14, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
Haz 20, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert SV_DECL_PTRARR(SfxModuleArr_Impl) to std::vector
Change-Id: I905d17fbbda11199065237b396c52bacc481e414
üst
7f91d56e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
9 deletions
+11
-9
arrdecl.hxx
sfx2/inc/arrdecl.hxx
+1
-1
app.hxx
sfx2/inc/sfx2/app.hxx
+2
-1
module.hxx
sfx2/inc/sfx2/module.hxx
+3
-1
appmisc.cxx
sfx2/source/appl/appmisc.cxx
+0
-1
module.cxx
sfx2/source/appl/module.cxx
+5
-5
No files found.
sfx2/inc/arrdecl.hxx
Dosyayı görüntüle @
0b784bd6
...
...
@@ -59,7 +59,7 @@ public:
};
class
SfxModule
;
SV_DECL_PTRARR
(
SfxModuleArr_Impl
,
SfxModule
*
,
2
)
typedef
::
std
::
vector
<
SfxModule
*>
SfxModuleArr_Impl
;
class
SfxFrame
;
typedef
::
std
::
vector
<
SfxFrame
*>
SfxFrameArr_Impl
;
...
...
sfx2/inc/sfx2/app.hxx
Dosyayı görüntüle @
0b784bd6
...
...
@@ -89,7 +89,8 @@ class StarBASIC;
class
SfxWorkWindow
;
class
SfxFilterMatcher
;
class
SfxModule
;
class
SfxModuleArr_Impl
;
class
SfxModule
;
typedef
::
std
::
vector
<
SfxModule
*>
SfxModuleArr_Impl
;
class
Window
;
class
INetURLObject
;
struct
SfxConstant
;
...
...
sfx2/inc/sfx2/module.hxx
Dosyayı görüntüle @
0b784bd6
...
...
@@ -36,6 +36,7 @@
#include <sal/types.h>
#include <tools/fldunit.hxx>
#include <com/sun/star/uno/Reference.hxx>
#include <vector>
class
ImageList
;
...
...
@@ -43,7 +44,8 @@ class SfxBindings;
class
SfxObjectFactory
;
class
ModalDialog
;
class
SfxObjectFactory
;
class
SfxModuleArr_Impl
;
class
SfxModule
;
typedef
::
std
::
vector
<
SfxModule
*>
SfxModuleArr_Impl
;
class
SfxModule_Impl
;
class
SfxSlotPool
;
struct
SfxChildWinContextFactory
;
...
...
sfx2/source/appl/appmisc.cxx
Dosyayı görüntüle @
0b784bd6
...
...
@@ -91,7 +91,6 @@ using namespace ::com::sun::star::container;
SV_IMPL_PTRARR
(
SfxTbxCtrlFactArr_Impl
,
SfxTbxCtrlFactory
*
);
SV_IMPL_PTRARR
(
SfxStbCtrlFactArr_Impl
,
SfxStbCtrlFactory
*
);
SV_IMPL_PTRARR
(
SfxMenuCtrlFactArr_Impl
,
SfxMenuCtrlFactory
*
);
SV_IMPL_PTRARR
(
SfxModuleArr_Impl
,
SfxModule
*
);
//===================================================================
...
...
sfx2/source/appl/module.cxx
Dosyayı görüntüle @
0b784bd6
...
...
@@ -144,7 +144,7 @@ void SfxModule::Construct_Impl()
SfxApplication
*
pApp
=
SFX_APP
();
SfxModuleArr_Impl
&
rArr
=
GetModules_Impl
();
SfxModule
*
pPtr
=
(
SfxModule
*
)
this
;
rArr
.
C40_INSERT
(
SfxModule
,
pPtr
,
rArr
.
Count
()
);
rArr
.
push_back
(
pPtr
);
pImpl
=
new
SfxModule_Impl
;
pImpl
->
pSlotPool
=
new
SfxSlotPool
(
&
pApp
->
GetAppSlotPool_Impl
(),
pResMgr
);
...
...
@@ -170,11 +170,11 @@ SfxModule::~SfxModule()
// The module will be destroyed before the Deinitialize,
// so remove from the array
SfxModuleArr_Impl
&
rArr
=
GetModules_Impl
();
for
(
sal_uInt16
nPos
=
rArr
.
Count
();
nPos
--
;
)
for
(
sal_uInt16
nPos
=
rArr
.
size
();
nPos
--
;
)
{
if
(
rArr
[
nPos
]
==
this
)
{
rArr
.
Remove
(
nPos
);
rArr
.
erase
(
rArr
.
begin
()
+
nPos
);
break
;
}
}
...
...
@@ -331,9 +331,9 @@ void SfxModule::DestroyModules_Impl()
if
(
pModules
)
{
SfxModuleArr_Impl
&
rModules
=
*
pModules
;
for
(
sal_uInt16
nPos
=
rModules
.
Count
();
nPos
--
;
)
for
(
sal_uInt16
nPos
=
rModules
.
size
();
nPos
--
;
)
{
SfxModule
*
pMod
=
rModules
.
GetObject
(
nPos
)
;
SfxModule
*
pMod
=
rModules
[
nPos
]
;
delete
pMod
;
}
delete
pModules
,
pModules
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment