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
2e6327e4
Kaydet (Commit)
2e6327e4
authored
Kas 04, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwCacheObj
Change-Id: I416c43f5f6819029e279bc2f5fb696b59917ef06
üst
37e0e10f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
24 deletions
+24
-24
swcache.cxx
sw/source/core/bastyp/swcache.cxx
+9
-9
swcache.hxx
sw/source/core/inc/swcache.hxx
+14
-14
frmtool.cxx
sw/source/core/layout/frmtool.cxx
+1
-1
No files found.
sw/source/core/bastyp/swcache.cxx
Dosyayı görüntüle @
2e6327e4
...
@@ -422,11 +422,11 @@ void SwCache::SetLRUOfst( const sal_uInt16 nOfst )
...
@@ -422,11 +422,11 @@ void SwCache::SetLRUOfst( const sal_uInt16 nOfst )
}
}
SwCacheObj
::
SwCacheObj
(
const
void
*
pOwn
)
:
SwCacheObj
::
SwCacheObj
(
const
void
*
pOwn
)
:
pNext
(
0
),
m_
pNext
(
0
),
pPrev
(
0
),
m_
pPrev
(
0
),
nCachePos
(
USHRT_MAX
),
m_
nCachePos
(
USHRT_MAX
),
nLock
(
0
),
m_
nLock
(
0
),
pOwner
(
pOwn
)
m_
pOwner
(
pOwn
)
{
{
}
}
...
@@ -437,14 +437,14 @@ SwCacheObj::~SwCacheObj()
...
@@ -437,14 +437,14 @@ SwCacheObj::~SwCacheObj()
#ifdef DBG_UTIL
#ifdef DBG_UTIL
void
SwCacheObj
::
Lock
()
void
SwCacheObj
::
Lock
()
{
{
OSL_ENSURE
(
nLock
<
UCHAR_MAX
,
"Too many Locks for CacheObject."
);
OSL_ENSURE
(
m_
nLock
<
UCHAR_MAX
,
"Too many Locks for CacheObject."
);
++
nLock
;
++
m_
nLock
;
}
}
void
SwCacheObj
::
Unlock
()
void
SwCacheObj
::
Unlock
()
{
{
OSL_ENSURE
(
nLock
,
"No more Locks available."
);
OSL_ENSURE
(
m_
nLock
,
"No more Locks available."
);
--
nLock
;
--
m_
nLock
;
}
}
#endif
#endif
...
...
sw/source/core/inc/swcache.hxx
Dosyayı görüntüle @
2e6327e4
...
@@ -136,34 +136,34 @@ class SwCacheObj
...
@@ -136,34 +136,34 @@ class SwCacheObj
{
{
friend
class
SwCache
;
/// Can do everything
friend
class
SwCache
;
/// Can do everything
SwCacheObj
*
pNext
;
/// For the LRU chaining
SwCacheObj
*
m_
pNext
;
/// For the LRU chaining
SwCacheObj
*
pPrev
;
SwCacheObj
*
m_
pPrev
;
sal_uInt16
nCachePos
;
/// Position in the Cache array
sal_uInt16
m_
nCachePos
;
/// Position in the Cache array
sal_uInt8
nLock
;
sal_uInt8
m_
nLock
;
inline
SwCacheObj
*
GetNext
()
{
return
pNext
;
}
inline
SwCacheObj
*
GetNext
()
{
return
m_
pNext
;
}
inline
SwCacheObj
*
GetPrev
()
{
return
pPrev
;
}
inline
SwCacheObj
*
GetPrev
()
{
return
m_
pPrev
;
}
inline
void
SetNext
(
SwCacheObj
*
pNew
)
{
pNext
=
pNew
;
}
inline
void
SetNext
(
SwCacheObj
*
pNew
)
{
m_
pNext
=
pNew
;
}
inline
void
SetPrev
(
SwCacheObj
*
pNew
)
{
pPrev
=
pNew
;
}
inline
void
SetPrev
(
SwCacheObj
*
pNew
)
{
m_
pPrev
=
pNew
;
}
inline
void
SetCachePos
(
const
sal_uInt16
nNew
)
{
nCachePos
=
nNew
;
}
inline
void
SetCachePos
(
const
sal_uInt16
nNew
)
{
m_
nCachePos
=
nNew
;
}
protected
:
protected
:
const
void
*
pOwner
;
const
void
*
m_
pOwner
;
public
:
public
:
SwCacheObj
(
const
void
*
pOwner
);
SwCacheObj
(
const
void
*
pOwner
);
virtual
~
SwCacheObj
();
virtual
~
SwCacheObj
();
inline
const
void
*
GetOwner
()
const
{
return
pOwner
;
}
inline
const
void
*
GetOwner
()
const
{
return
m_
pOwner
;
}
inline
bool
IsOwner
(
const
void
*
pNew
)
const
;
inline
bool
IsOwner
(
const
void
*
pNew
)
const
;
inline
sal_uInt16
GetCachePos
()
const
{
return
nCachePos
;
}
inline
sal_uInt16
GetCachePos
()
const
{
return
m_
nCachePos
;
}
inline
bool
IsLocked
()
const
{
return
0
!=
nLock
;
}
inline
bool
IsLocked
()
const
{
return
0
!=
m_
nLock
;
}
#ifdef DBG_UTIL
#ifdef DBG_UTIL
void
Lock
();
void
Lock
();
...
@@ -230,7 +230,7 @@ inline void SwCache::DecreaseMax( const sal_uInt16 nSub )
...
@@ -230,7 +230,7 @@ inline void SwCache::DecreaseMax( const sal_uInt16 nSub )
inline
bool
SwCacheObj
::
IsOwner
(
const
void
*
pNew
)
const
inline
bool
SwCacheObj
::
IsOwner
(
const
void
*
pNew
)
const
{
{
return
pOwner
&&
pOwner
==
pNew
;
return
m_pOwner
&&
m_
pOwner
==
pNew
;
}
}
inline
SwCacheObj
*
SwCache
::
Next
(
SwCacheObj
*
pCacheObj
)
inline
SwCacheObj
*
SwCache
::
Next
(
SwCacheObj
*
pCacheObj
)
...
...
sw/source/core/layout/frmtool.cxx
Dosyayı görüntüle @
2e6327e4
...
@@ -1867,7 +1867,7 @@ SwBorderAttrs::SwBorderAttrs(const SwModify *pMod, const SwFrm *pConstructor)
...
@@ -1867,7 +1867,7 @@ SwBorderAttrs::SwBorderAttrs(const SwModify *pMod, const SwFrm *pConstructor)
SwBorderAttrs
::~
SwBorderAttrs
()
SwBorderAttrs
::~
SwBorderAttrs
()
{
{
const_cast
<
SwModify
*>
(
static_cast
<
SwModify
const
*>
(
pOwner
))
->
SetInCache
(
false
);
const_cast
<
SwModify
*>
(
static_cast
<
SwModify
const
*>
(
m_
pOwner
))
->
SetInCache
(
false
);
}
}
/* All calc methods calculate a safety distance in addition to the values given by the attributes.
/* All calc methods calculate a safety distance in addition to the values given by the attributes.
...
...
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