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
a48414a3
Kaydet (Commit)
a48414a3
authored
Haz 19, 2014
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
corrected place for stl sort function for linux
üst
61b32a70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
grfmgr2.cxx
svtools/source/graphic/grfmgr2.cxx
+11
-8
No files found.
svtools/source/graphic/grfmgr2.cxx
Dosyayı görüntüle @
a48414a3
...
...
@@ -295,6 +295,17 @@ ByteString GraphicManager::ImplGetUniqueID( const GraphicObject& rObj ) const
// -----------------------------------------------------------------------------
namespace
{
struct
simpleSortByDataChangeTimeStamp
{
bool
operator
()
(
GraphicObject
*
p1
,
GraphicObject
*
p2
)
const
{
return
p1
->
GetDataChangeTimeStamp
()
<
p2
->
GetDataChangeTimeStamp
();
}
};
}
// end of anonymous namespace
void
GraphicManager
::
ImplCheckSizeOfSwappedInGraphics
()
{
// only necessary for 32bit systems
...
...
@@ -334,14 +345,6 @@ void GraphicManager::ImplCheckSizeOfSwappedInGraphics()
if
(
nUsedSize
>=
nMaxCacheSize
&&
!
aCandidates
.
empty
())
{
// if we use more currently, sort by last DataChangeTimeStamp
struct
simpleSortByDataChangeTimeStamp
{
bool
operator
()
(
GraphicObject
*
p1
,
GraphicObject
*
p2
)
const
{
return
p1
->
GetDataChangeTimeStamp
()
<
p2
->
GetDataChangeTimeStamp
();
}
};
// sort by DataChangeTimeStamp so that the oldest get removed first
::
std
::
sort
(
aCandidates
.
begin
(),
aCandidates
.
end
(),
simpleSortByDataChangeTimeStamp
());
...
...
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