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
def6b1dd
Kaydet (Commit)
def6b1dd
authored
Ara 18, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sc: replace boost::ptr_map with std::map<std::unique_ptr>
Change-Id: Ia9d061d9f5fb07e07fd6253a6493a4e9b1f9c975
üst
91f571a2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
18 deletions
+17
-18
dpobject.hxx
sc/inc/dpobject.hxx
+2
-4
dpobject.cxx
sc/source/core/data/dpobject.cxx
+13
-14
pivotsource.cxx
sc/source/filter/xml/pivotsource.cxx
+2
-0
No files found.
sc/inc/dpobject.hxx
Dosyayı görüntüle @
def6b1dd
...
@@ -35,8 +35,6 @@
...
@@ -35,8 +35,6 @@
#include <vector>
#include <vector>
#include <map>
#include <map>
#include <boost/ptr_container/ptr_map.hpp>
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
container
{
namespace
container
{
...
@@ -337,8 +335,8 @@ public:
...
@@ -337,8 +335,8 @@ public:
class
DBCaches
class
DBCaches
{
{
friend
class
ScDPCollection
;
friend
class
ScDPCollection
;
typedef
::
boost
::
ptr_map
<
DBType
,
ScDPCache
,
DBType
::
less
>
CachesType
;
typedef
::
std
::
map
<
DBType
,
std
::
unique_ptr
<
ScDPCache
>
,
DBType
::
less
>
CachesType
;
CachesType
m
a
Caches
;
CachesType
m
_
Caches
;
ScDocument
*
mpDoc
;
ScDocument
*
mpDoc
;
public
:
public
:
DBCaches
(
ScDocument
*
pDoc
);
DBCaches
(
ScDocument
*
pDoc
);
...
...
sc/source/core/data/dpobject.cxx
Dosyayı görüntüle @
def6b1dd
...
@@ -68,7 +68,6 @@
...
@@ -68,7 +68,6 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
#include <comphelper/string.hxx>
#include <comphelper/types.hxx>
#include <comphelper/types.hxx>
#include <o3tl/ptr_container.hxx>
#include <sal/macros.h>
#include <sal/macros.h>
#include <tools/debug.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
#include <tools/diagnose_ex.h>
...
@@ -3104,8 +3103,8 @@ ScDPCollection::DBCaches::DBCaches(ScDocument* pDoc) : mpDoc(pDoc) {}
...
@@ -3104,8 +3103,8 @@ ScDPCollection::DBCaches::DBCaches(ScDocument* pDoc) : mpDoc(pDoc) {}
bool
ScDPCollection
::
DBCaches
::
hasCache
(
sal_Int32
nSdbType
,
const
OUString
&
rDBName
,
const
OUString
&
rCommand
)
const
bool
ScDPCollection
::
DBCaches
::
hasCache
(
sal_Int32
nSdbType
,
const
OUString
&
rDBName
,
const
OUString
&
rCommand
)
const
{
{
DBType
aType
(
nSdbType
,
rDBName
,
rCommand
);
DBType
aType
(
nSdbType
,
rDBName
,
rCommand
);
CachesType
::
const_iterator
itr
=
ma
Caches
.
find
(
aType
);
CachesType
::
const_iterator
const
itr
=
m_
Caches
.
find
(
aType
);
return
itr
!=
m
a
Caches
.
end
();
return
itr
!=
m
_
Caches
.
end
();
}
}
const
ScDPCache
*
ScDPCollection
::
DBCaches
::
getCache
(
const
ScDPCache
*
ScDPCollection
::
DBCaches
::
getCache
(
...
@@ -3113,10 +3112,10 @@ const ScDPCache* ScDPCollection::DBCaches::getCache(
...
@@ -3113,10 +3112,10 @@ const ScDPCache* ScDPCollection::DBCaches::getCache(
const
ScDPDimensionSaveData
*
pDimData
)
const
ScDPDimensionSaveData
*
pDimData
)
{
{
DBType
aType
(
nSdbType
,
rDBName
,
rCommand
);
DBType
aType
(
nSdbType
,
rDBName
,
rCommand
);
CachesType
::
const_iterator
itr
=
ma
Caches
.
find
(
aType
);
CachesType
::
const_iterator
const
itr
=
m_
Caches
.
find
(
aType
);
if
(
itr
!=
m
a
Caches
.
end
())
if
(
itr
!=
m
_
Caches
.
end
())
// already cached.
// already cached.
return
itr
->
second
;
return
itr
->
second
.
get
()
;
uno
::
Reference
<
sdbc
::
XRowSet
>
xRowSet
=
createRowSet
(
nSdbType
,
rDBName
,
rCommand
);
uno
::
Reference
<
sdbc
::
XRowSet
>
xRowSet
=
createRowSet
(
nSdbType
,
rDBName
,
rCommand
);
if
(
!
xRowSet
.
is
())
if
(
!
xRowSet
.
is
())
...
@@ -3140,7 +3139,7 @@ const ScDPCache* ScDPCollection::DBCaches::getCache(
...
@@ -3140,7 +3139,7 @@ const ScDPCache* ScDPCollection::DBCaches::getCache(
::
comphelper
::
disposeComponent
(
xRowSet
);
::
comphelper
::
disposeComponent
(
xRowSet
);
const
ScDPCache
*
p
=
pCache
.
get
();
const
ScDPCache
*
p
=
pCache
.
get
();
o3tl
::
ptr_container
::
insert
(
maCaches
,
aType
,
std
::
move
(
pCache
));
m_Caches
.
insert
(
std
::
make_pair
(
aType
,
std
::
move
(
pCache
)
));
return
p
;
return
p
;
}
}
...
@@ -3148,8 +3147,8 @@ ScDPCache* ScDPCollection::DBCaches::getExistingCache(
...
@@ -3148,8 +3147,8 @@ ScDPCache* ScDPCollection::DBCaches::getExistingCache(
sal_Int32
nSdbType
,
const
OUString
&
rDBName
,
const
OUString
&
rCommand
)
sal_Int32
nSdbType
,
const
OUString
&
rDBName
,
const
OUString
&
rCommand
)
{
{
DBType
aType
(
nSdbType
,
rDBName
,
rCommand
);
DBType
aType
(
nSdbType
,
rDBName
,
rCommand
);
CachesType
::
iterator
itr
=
ma
Caches
.
find
(
aType
);
CachesType
::
iterator
const
itr
=
m_
Caches
.
find
(
aType
);
return
itr
!=
m
aCaches
.
end
()
?
itr
->
second
:
nullptr
;
return
itr
!=
m
_Caches
.
end
()
?
itr
->
second
.
get
()
:
nullptr
;
}
}
uno
::
Reference
<
sdbc
::
XRowSet
>
ScDPCollection
::
DBCaches
::
createRowSet
(
uno
::
Reference
<
sdbc
::
XRowSet
>
ScDPCollection
::
DBCaches
::
createRowSet
(
...
@@ -3215,8 +3214,8 @@ void ScDPCollection::DBCaches::updateCache(
...
@@ -3215,8 +3214,8 @@ void ScDPCollection::DBCaches::updateCache(
std
::
set
<
ScDPObject
*>&
rRefs
)
std
::
set
<
ScDPObject
*>&
rRefs
)
{
{
DBType
aType
(
nSdbType
,
rDBName
,
rCommand
);
DBType
aType
(
nSdbType
,
rDBName
,
rCommand
);
CachesType
::
iterator
it
=
ma
Caches
.
find
(
aType
);
CachesType
::
iterator
const
it
=
m_
Caches
.
find
(
aType
);
if
(
it
==
m
a
Caches
.
end
())
if
(
it
==
m
_
Caches
.
end
())
{
{
// not cached.
// not cached.
rRefs
.
clear
();
rRefs
.
clear
();
...
@@ -3255,12 +3254,12 @@ void ScDPCollection::DBCaches::updateCache(
...
@@ -3255,12 +3254,12 @@ void ScDPCollection::DBCaches::updateCache(
bool
ScDPCollection
::
DBCaches
::
remove
(
const
ScDPCache
*
p
)
bool
ScDPCollection
::
DBCaches
::
remove
(
const
ScDPCache
*
p
)
{
{
CachesType
::
iterator
it
=
m
aCaches
.
begin
(),
itEnd
=
ma
Caches
.
end
();
CachesType
::
iterator
it
=
m
_Caches
.
begin
(),
itEnd
=
m_
Caches
.
end
();
for
(;
it
!=
itEnd
;
++
it
)
for
(;
it
!=
itEnd
;
++
it
)
{
{
if
(
it
->
second
==
p
)
if
(
it
->
second
.
get
()
==
p
)
{
{
m
a
Caches
.
erase
(
it
);
m
_
Caches
.
erase
(
it
);
return
true
;
return
true
;
}
}
}
}
...
...
sc/source/filter/xml/pivotsource.cxx
Dosyayı görüntüle @
def6b1dd
...
@@ -11,6 +11,8 @@
...
@@ -11,6 +11,8 @@
#include <dpsave.hxx>
#include <dpsave.hxx>
#include <algorithm>
namespace
sc
{
namespace
sc
{
PivotTableSources
::
SelectedPages
::
SelectedPages
(
ScDPObject
*
pObj
,
const
SelectedPagesType
&
rSelected
)
:
PivotTableSources
::
SelectedPages
::
SelectedPages
(
ScDPObject
*
pObj
,
const
SelectedPagesType
&
rSelected
)
:
...
...
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