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
f0835373
Kaydet (Commit)
f0835373
authored
Nis 05, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use std::unique_ptr for Impl in SvxStyleToolBoxControl
Change-Id: Ia01755ee617002ef2c234e29b1edd497b031ef8a
üst
0c2245a4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
tbcontrl.hxx
include/svx/tbcontrl.hxx
+2
-1
tbcontrl.cxx
svx/source/tbxctrls/tbcontrl.cxx
+3
-4
No files found.
include/svx/tbcontrl.hxx
Dosyayı görüntüle @
f0835373
...
...
@@ -155,6 +155,8 @@ namespace svx
class
SVX_DLLPUBLIC
SvxStyleToolBoxControl
:
public
SfxToolBoxControl
{
struct
Impl
;
std
::
unique_ptr
<
Impl
>
pImpl
;
public
:
SFX_DECL_TOOLBOX_CONTROL
();
...
...
@@ -189,7 +191,6 @@ private:
css
::
uno
::
Reference
<
css
::
lang
::
XComponent
>
m_xBoundItems
[
MAX_FAMILIES
];
SfxTemplateItem
*
pFamilyState
[
MAX_FAMILIES
];
sal_uInt16
nActFamily
;
// Id in the ToolBox = Position - 1
Impl
*
pImpl
;
SVX_DLLPRIVATE
void
Update
();
SVX_DLLPRIVATE
void
FillStyleBox
();
...
...
svx/source/tbxctrls/tbcontrl.cxx
Dosyayı görüntüle @
f0835373
...
...
@@ -1987,9 +1987,9 @@ static const char* StyleSlotToStyleCommand[MAX_FAMILIES] =
SvxStyleToolBoxControl
::
SvxStyleToolBoxControl
(
sal_uInt16
nSlotId
,
sal_uInt16
nId
,
ToolBox
&
rTbx
)
:
SfxToolBoxControl
(
nSlotId
,
nId
,
rTbx
),
pImpl
(
new
Impl
),
pStyleSheetPool
(
NULL
),
nActFamily
(
0xffff
),
pImpl
(
new
Impl
)
nActFamily
(
0xffff
)
{
for
(
sal_uInt16
i
=
0
;
i
<
MAX_FAMILIES
;
i
++
)
{
...
...
@@ -2001,7 +2001,6 @@ SvxStyleToolBoxControl::SvxStyleToolBoxControl(
SvxStyleToolBoxControl
::~
SvxStyleToolBoxControl
()
{
delete
pImpl
;
}
void
SAL_CALL
SvxStyleToolBoxControl
::
initialize
(
const
Sequence
<
Any
>&
aArguments
)
...
...
@@ -2051,7 +2050,7 @@ throw (::com::sun::star::uno::RuntimeException, std::exception)
DELETEZ
(
pFamilyState
[
i
]
);
}
pStyleSheetPool
=
NULL
;
DELETEZ
(
pImpl
);
pImpl
.
reset
(
);
}
void
SAL_CALL
SvxStyleToolBoxControl
::
update
()
throw
(
RuntimeException
,
std
::
exception
)
...
...
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