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
8733b2ab
Kaydet (Commit)
8733b2ab
authored
Kas 12, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sc: boost::ptr_vector->std::vector<std::unique_ptr>
Change-Id: I1634157c56f5aa7a9096ce1bba4df09fd86f7748
üst
f24323d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
PivotLayoutTreeListLabel.cxx
sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx
+3
-3
PivotLayoutTreeListLabel.hxx
sc/source/ui/inc/PivotLayoutTreeListLabel.hxx
+3
-2
No files found.
sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx
Dosyayı görüntüle @
8733b2ab
...
@@ -43,7 +43,7 @@ void ScPivotLayoutTreeListLabel::FillLabelFields(ScDPLabelDataVector& rLabelVect
...
@@ -43,7 +43,7 @@ void ScPivotLayoutTreeListLabel::FillLabelFields(ScDPLabelDataVector& rLabelVect
const
ScDPLabelData
&
rLabelData
=
*
it
;
const
ScDPLabelData
&
rLabelData
=
*
it
;
ScItemValue
*
pValue
=
new
ScItemValue
(
rLabelData
.
maName
,
rLabelData
.
mnCol
,
rLabelData
.
mnFuncMask
);
ScItemValue
*
pValue
=
new
ScItemValue
(
rLabelData
.
maName
,
rLabelData
.
mnCol
,
rLabelData
.
mnFuncMask
);
maItemValues
.
push_back
(
pValue
);
maItemValues
.
push_back
(
std
::
unique_ptr
<
ScItemValue
>
(
pValue
)
);
if
(
rLabelData
.
mbDataLayout
)
if
(
rLabelData
.
mbDataLayout
)
{
{
maDataItem
=
maItemValues
.
size
()
-
1
;
maDataItem
=
maItemValues
.
size
()
-
1
;
...
@@ -71,8 +71,8 @@ bool ScPivotLayoutTreeListLabel::IsDataElement(SCCOL nColumn)
...
@@ -71,8 +71,8 @@ bool ScPivotLayoutTreeListLabel::IsDataElement(SCCOL nColumn)
ScItemValue
*
ScPivotLayoutTreeListLabel
::
GetItem
(
SCCOL
nColumn
)
ScItemValue
*
ScPivotLayoutTreeListLabel
::
GetItem
(
SCCOL
nColumn
)
{
{
if
(
nColumn
==
PIVOT_DATA_FIELD
)
if
(
nColumn
==
PIVOT_DATA_FIELD
)
return
&
maItemValues
[
maDataItem
]
;
return
maItemValues
[
maDataItem
].
get
()
;
return
&
maItemValues
[
nColumn
]
;
return
maItemValues
[
nColumn
].
get
()
;
}
}
void
ScPivotLayoutTreeListLabel
::
KeyInput
(
const
KeyEvent
&
rKeyEvent
)
void
ScPivotLayoutTreeListLabel
::
KeyInput
(
const
KeyEvent
&
rKeyEvent
)
...
...
sc/source/ui/inc/PivotLayoutTreeListLabel.hxx
Dosyayı görüntüle @
8733b2ab
...
@@ -12,12 +12,13 @@
...
@@ -12,12 +12,13 @@
#define INCLUDED_SC_SOURCE_UI_INC_PIVOTLAYOUTTREELISTLABEL_HXX
#define INCLUDED_SC_SOURCE_UI_INC_PIVOTLAYOUTTREELISTLABEL_HXX
#include "PivotLayoutTreeListBase.hxx"
#include "PivotLayoutTreeListBase.hxx"
#include <boost/ptr_container/ptr_vector.hpp>
#include <vector>
#include <memory>
class
ScPivotLayoutTreeListLabel
:
public
ScPivotLayoutTreeListBase
class
ScPivotLayoutTreeListLabel
:
public
ScPivotLayoutTreeListBase
{
{
private
:
private
:
boost
::
ptr_vector
<
ScItemValue
>
maItemValues
;
std
::
vector
<
std
::
unique_ptr
<
ScItemValue
>
>
maItemValues
;
SCCOL
maDataItem
;
SCCOL
maDataItem
;
public
:
public
:
...
...
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