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
59e4ac4c
Kaydet (Commit)
59e4ac4c
authored
Mar 09, 2012
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-Werror={deprecated-declarations,sign-compare,unused-parameter}
üst
eea51b76
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
11 deletions
+10
-11
dpgroup.hxx
sc/inc/dpgroup.hxx
+1
-1
dptablecache.hxx
sc/inc/dptablecache.hxx
+1
-1
dpgroup.cxx
sc/source/core/data/dpgroup.cxx
+2
-5
dptablecache.cxx
sc/source/core/data/dptablecache.cxx
+6
-4
No files found.
sc/inc/dpgroup.hxx
Dosyayı görüntüle @
59e4ac4c
...
@@ -107,7 +107,7 @@ public:
...
@@ -107,7 +107,7 @@ public:
long
GetGroupDim
()
const
{
return
nGroupDim
;
}
long
GetGroupDim
()
const
{
return
nGroupDim
;
}
const
String
&
GetName
()
const
{
return
aGroupName
;
}
const
String
&
GetName
()
const
{
return
aGroupName
;
}
const
std
::
vector
<
SCROW
>&
GetColumnEntries
(
const
ScDPCacheTable
&
rCacheTable
,
const
std
::
vector
<
SCROW
>&
rOriginal
)
const
;
const
std
::
vector
<
SCROW
>&
GetColumnEntries
(
const
ScDPCacheTable
&
rCacheTable
)
const
;
const
ScDPGroupItem
*
GetGroupForData
(
const
ScDPItemData
&
rData
)
const
;
// rData = entry in original dim.
const
ScDPGroupItem
*
GetGroupForData
(
const
ScDPItemData
&
rData
)
const
;
// rData = entry in original dim.
const
ScDPGroupItem
*
GetGroupForName
(
const
ScDPItemData
&
rName
)
const
;
// rName = entry in group dim.
const
ScDPGroupItem
*
GetGroupForName
(
const
ScDPItemData
&
rName
)
const
;
// rName = entry in group dim.
const
ScDPGroupItem
*
GetGroupByIndex
(
size_t
nIndex
)
const
;
const
ScDPGroupItem
*
GetGroupByIndex
(
size_t
nIndex
)
const
;
...
...
sc/inc/dptablecache.hxx
Dosyayı görüntüle @
59e4ac4c
...
@@ -149,7 +149,7 @@ public:
...
@@ -149,7 +149,7 @@ public:
SCROW
GetRowCount
()
const
;
SCROW
GetRowCount
()
const
;
SCROW
GetItemDataId
(
sal_uInt16
nDim
,
SCROW
nRow
,
bool
bRepeatIfEmpty
)
const
;
SCROW
GetItemDataId
(
sal_uInt16
nDim
,
SCROW
nRow
,
bool
bRepeatIfEmpty
)
const
;
rtl
::
OUString
GetDimensionName
(
long
nDim
)
const
;
rtl
::
OUString
GetDimensionName
(
LabelsType
::
size_type
nDim
)
const
;
bool
IsRowEmpty
(
SCROW
nRow
)
const
;
bool
IsRowEmpty
(
SCROW
nRow
)
const
;
bool
IsValid
()
const
;
bool
IsValid
()
const
;
bool
ValidQuery
(
SCROW
nRow
,
const
ScQueryParam
&
rQueryParam
)
const
;
bool
ValidQuery
(
SCROW
nRow
,
const
ScQueryParam
&
rQueryParam
)
const
;
...
...
sc/source/core/data/dpgroup.cxx
Dosyayı görüntüle @
59e4ac4c
...
@@ -450,7 +450,7 @@ void ScDPGroupDimension::SetGroupDim( long nDim )
...
@@ -450,7 +450,7 @@ void ScDPGroupDimension::SetGroupDim( long nDim )
}
}
const
std
::
vector
<
SCROW
>&
ScDPGroupDimension
::
GetColumnEntries
(
const
std
::
vector
<
SCROW
>&
ScDPGroupDimension
::
GetColumnEntries
(
const
ScDPCacheTable
&
rCacheTable
,
const
std
::
vector
<
SCROW
>&
rOriginal
)
const
const
ScDPCacheTable
&
rCacheTable
)
const
{
{
if
(
!
maMemberEntries
.
empty
())
if
(
!
maMemberEntries
.
empty
())
return
maMemberEntries
;
return
maMemberEntries
;
...
@@ -635,10 +635,7 @@ const std::vector< SCROW >& ScDPGroupTableData::GetColumnEntries( long nColumn
...
@@ -635,10 +635,7 @@ const std::vector< SCROW >& ScDPGroupTableData::GetColumnEntries( long nColumn
else
else
{
{
const
ScDPGroupDimension
&
rGroupDim
=
aGroups
[
nColumn
-
nSourceCount
];
const
ScDPGroupDimension
&
rGroupDim
=
aGroups
[
nColumn
-
nSourceCount
];
long
nSourceDim
=
rGroupDim
.
GetSourceDim
();
return
rGroupDim
.
GetColumnEntries
(
GetCacheTable
()
);
// collection is cached at pSourceData, GetColumnEntries can be called every time
const
std
::
vector
<
SCROW
>&
rOriginal
=
pSourceData
->
GetColumnEntries
(
nSourceDim
);
return
rGroupDim
.
GetColumnEntries
(
GetCacheTable
(),
rOriginal
);
}
}
}
}
...
...
sc/source/core/data/dptablecache.cxx
Dosyayı görüntüle @
59e4ac4c
...
@@ -626,7 +626,9 @@ bool ScDPCache::AddData(long nDim, ScDPItemData* pData, sal_uLong nNumFormat)
...
@@ -626,7 +626,9 @@ bool ScDPCache::AddData(long nDim, ScDPItemData* pData, sal_uLong nNumFormat)
OSL_ENSURE
(
nDim
<
mnColumnCount
&&
nDim
>=
0
,
"dimension out of bound"
);
OSL_ENSURE
(
nDim
<
mnColumnCount
&&
nDim
>=
0
,
"dimension out of bound"
);
// Wrap this instance with scoped pointer to ensure proper deletion.
// Wrap this instance with scoped pointer to ensure proper deletion.
SAL_WNODEPRECATED_DECLARATIONS_PUSH
auto_ptr
<
ScDPItemData
>
p
(
pData
);
auto_ptr
<
ScDPItemData
>
p
(
pData
);
SAL_WNODEPRECATED_DECLARATIONS_POP
SCROW
nIndex
=
0
;
SCROW
nIndex
=
0
;
Field
&
rField
=
maFields
[
nDim
];
Field
&
rField
=
maFields
[
nDim
];
...
@@ -636,7 +638,7 @@ bool ScDPCache::AddData(long nDim, ScDPItemData* pData, sal_uLong nNumFormat)
...
@@ -636,7 +638,7 @@ bool ScDPCache::AddData(long nDim, ScDPItemData* pData, sal_uLong nNumFormat)
rField
.
maItems
.
push_back
(
p
);
rField
.
maItems
.
push_back
(
p
);
rField
.
maGlobalOrder
.
insert
(
rField
.
maGlobalOrder
.
insert
(
rField
.
maGlobalOrder
.
begin
()
+
nIndex
,
rField
.
maItems
.
size
()
-
1
);
rField
.
maGlobalOrder
.
begin
()
+
nIndex
,
rField
.
maItems
.
size
()
-
1
);
OSL_ENSURE
(
rField
.
maGlobalOrder
[
nIndex
]
==
rField
.
maItems
.
size
(
)
-
1
,
"ScDPTableDataCache::AddData "
);
OSL_ENSURE
(
rField
.
maGlobalOrder
[
nIndex
]
==
sal
::
static_int_cast
<
SCROW
>
(
rField
.
maItems
.
size
()
)
-
1
,
"ScDPTableDataCache::AddData "
);
rField
.
maData
.
push_back
(
rField
.
maItems
.
size
()
-
1
);
rField
.
maData
.
push_back
(
rField
.
maItems
.
size
()
-
1
);
rField
.
maNumFormats
.
push_back
(
nNumFormat
);
rField
.
maNumFormats
.
push_back
(
nNumFormat
);
}
}
...
@@ -671,12 +673,12 @@ const ScDPCache::GroupItems* ScDPCache::GetGroupItems(long nDim) const
...
@@ -671,12 +673,12 @@ const ScDPCache::GroupItems* ScDPCache::GetGroupItems(long nDim) const
return
NULL
;
return
NULL
;
}
}
rtl
::
OUString
ScDPCache
::
GetDimensionName
(
long
nDim
)
const
rtl
::
OUString
ScDPCache
::
GetDimensionName
(
LabelsType
::
size_type
nDim
)
const
{
{
OSL_ENSURE
(
nDim
<
maLabelNames
.
size
()
-
1
,
"ScDPTableDataCache::GetDimensionName"
);
OSL_ENSURE
(
nDim
<
maLabelNames
.
size
()
-
1
,
"ScDPTableDataCache::GetDimensionName"
);
OSL_ENSURE
(
maLabelNames
.
size
()
==
static_cast
<
sal_uInt16
>
(
mnColumnCount
+
1
),
"ScDPTableDataCache::GetDimensionName"
);
OSL_ENSURE
(
maLabelNames
.
size
()
==
static_cast
<
sal_uInt16
>
(
mnColumnCount
+
1
),
"ScDPTableDataCache::GetDimensionName"
);
if
(
static_cast
<
size_t
>
(
nDim
+
1
)
<
maLabelNames
.
size
()
)
if
(
nDim
+
1
<
maLabelNames
.
size
()
)
{
{
return
maLabelNames
[
nDim
+
1
];
return
maLabelNames
[
nDim
+
1
];
}
}
...
@@ -1099,7 +1101,7 @@ SCROW ScDPCache::GetOrder(long nDim, SCROW nIndex) const
...
@@ -1099,7 +1101,7 @@ SCROW ScDPCache::GetOrder(long nDim, SCROW nIndex) const
}
}
}
}
OSL_ENSURE
(
nIndex
>=
0
&&
nIndex
<
rField
.
maIndexOrder
.
size
()
,
"ScDPTableDataCache::GetOrder"
);
OSL_ENSURE
(
nIndex
>=
0
&&
sal
::
static_int_cast
<
sal_uInt32
>
(
nIndex
)
<
rField
.
maIndexOrder
.
size
()
,
"ScDPTableDataCache::GetOrder"
);
return
rField
.
maIndexOrder
[
nIndex
];
return
rField
.
maIndexOrder
[
nIndex
];
}
}
...
...
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