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
13815efe
Kaydet (Commit)
13815efe
authored
Kas 10, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cui: boost::ptr_vector->std::vector<unique_ptr>
Change-Id: Ieddd13abc6bb23904db10f303dfc85cd87cfaa03
üst
c83bf01e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
numpages.hxx
cui/source/inc/numpages.hxx
+2
-2
numpages.cxx
cui/source/tabpages/numpages.cxx
+4
-4
No files found.
cui/source/inc/numpages.hxx
Dosyayı görüntüle @
13815efe
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#define INCLUDED_CUI_SOURCE_INC_NUMPAGES_HXX
#define INCLUDED_CUI_SOURCE_INC_NUMPAGES_HXX
#include <vector>
#include <vector>
#include <
boost/ptr_container/ptr_vector.hpp
>
#include <
memory
>
#include <sfx2/tabdlg.hxx>
#include <sfx2/tabdlg.hxx>
#include <vcl/group.hxx>
#include <vcl/group.hxx>
...
@@ -76,7 +76,7 @@ struct SvxNumSettings_Impl
...
@@ -76,7 +76,7 @@ struct SvxNumSettings_Impl
{}
{}
};
};
typedef
boost
::
ptr_vector
<
SvxNumSettings_Impl
>
SvxNumSettingsArr_Impl
;
typedef
std
::
vector
<
std
::
unique_ptr
<
SvxNumSettings_Impl
>
>
SvxNumSettingsArr_Impl
;
...
...
cui/source/tabpages/numpages.cxx
Dosyayı görüntüle @
13815efe
...
@@ -213,7 +213,7 @@ SvxSingleNumPickTabPage::SvxSingleNumPickTabPage(vcl::Window* pParent,
...
@@ -213,7 +213,7 @@ SvxSingleNumPickTabPage::SvxSingleNumPickTabPage(vcl::Window* pParent,
for
(
sal_Int32
i
=
0
;
i
<
nLength
;
i
++
)
for
(
sal_Int32
i
=
0
;
i
<
nLength
;
i
++
)
{
{
SvxNumSettings_Impl
*
pNew
=
lcl_CreateNumSettingsPtr
(
pValuesArr
[
i
]);
SvxNumSettings_Impl
*
pNew
=
lcl_CreateNumSettingsPtr
(
pValuesArr
[
i
]);
aNumSettingsArr
.
push_back
(
pNew
);
aNumSettingsArr
.
push_back
(
std
::
unique_ptr
<
SvxNumSettings_Impl
>
(
pNew
)
);
}
}
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
)
...
@@ -336,7 +336,7 @@ IMPL_LINK_NOARG_TYPED(SvxSingleNumPickTabPage, NumSelectHdl_Impl, ValueSet*, voi
...
@@ -336,7 +336,7 @@ IMPL_LINK_NOARG_TYPED(SvxSingleNumPickTabPage, NumSelectHdl_Impl, ValueSet*, voi
DBG_ASSERT
(
aNumSettingsArr
.
size
()
>
nIdx
,
"wrong index"
);
DBG_ASSERT
(
aNumSettingsArr
.
size
()
>
nIdx
,
"wrong index"
);
if
(
aNumSettingsArr
.
size
()
<=
nIdx
)
if
(
aNumSettingsArr
.
size
()
<=
nIdx
)
return
;
return
;
SvxNumSettings_Impl
*
_pSet
=
&
aNumSettingsArr
[
nIdx
]
;
SvxNumSettings_Impl
*
_pSet
=
aNumSettingsArr
[
nIdx
].
get
()
;
sal_Int16
eNewType
=
_pSet
->
nNumberType
;
sal_Int16
eNewType
=
_pSet
->
nNumberType
;
const
sal_Unicode
cLocalPrefix
=
!
_pSet
->
sPrefix
.
isEmpty
()
?
_pSet
->
sPrefix
[
0
]
:
0
;
const
sal_Unicode
cLocalPrefix
=
!
_pSet
->
sPrefix
.
isEmpty
()
?
_pSet
->
sPrefix
[
0
]
:
0
;
const
sal_Unicode
cLocalSuffix
=
!
_pSet
->
sSuffix
.
isEmpty
()
?
_pSet
->
sSuffix
[
0
]
:
0
;
const
sal_Unicode
cLocalSuffix
=
!
_pSet
->
sSuffix
.
isEmpty
()
?
_pSet
->
sSuffix
[
0
]
:
0
;
...
@@ -580,7 +580,7 @@ SvxNumPickTabPage::SvxNumPickTabPage(vcl::Window* pParent,
...
@@ -580,7 +580,7 @@ SvxNumPickTabPage::SvxNumPickTabPage(vcl::Window* pParent,
Sequence
<
PropertyValue
>
aLevelProps
;
Sequence
<
PropertyValue
>
aLevelProps
;
aValueAny
>>=
aLevelProps
;
aValueAny
>>=
aLevelProps
;
SvxNumSettings_Impl
*
pNew
=
lcl_CreateNumSettingsPtr
(
aLevelProps
);
SvxNumSettings_Impl
*
pNew
=
lcl_CreateNumSettingsPtr
(
aLevelProps
);
rItemArr
.
push_back
(
pNew
);
rItemArr
.
push_back
(
std
::
unique_ptr
<
SvxNumSettings_Impl
>
(
pNew
)
);
}
}
}
}
}
}
...
@@ -710,7 +710,7 @@ IMPL_LINK_NOARG_TYPED(SvxNumPickTabPage, NumSelectHdl_Impl, ValueSet*, void)
...
@@ -710,7 +710,7 @@ IMPL_LINK_NOARG_TYPED(SvxNumPickTabPage, NumSelectHdl_Impl, ValueSet*, void)
for
(
sal_uInt16
i
=
0
;
i
<
pActNum
->
GetLevelCount
();
i
++
)
for
(
sal_uInt16
i
=
0
;
i
<
pActNum
->
GetLevelCount
();
i
++
)
{
{
if
(
rItemArr
.
size
()
>
i
)
if
(
rItemArr
.
size
()
>
i
)
pLevelSettings
=
&
rItemArr
[
i
]
;
pLevelSettings
=
rItemArr
[
i
].
get
()
;
if
(
!
pLevelSettings
)
if
(
!
pLevelSettings
)
break
;
break
;
SvxNumberFormat
aFmt
(
pActNum
->
GetLevel
(
i
));
SvxNumberFormat
aFmt
(
pActNum
->
GetLevel
(
i
));
...
...
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