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
068887ed
Kaydet (Commit)
068887ed
authored
Tem 23, 2014
tarafından
Bjoern Michaelsen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
remove some SwSaveTypeCountContent insanity: casting via union
Change-Id: I784c41697c56d577881937e8cd524aceb7bc6ad8
üst
673be481
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
17 deletions
+13
-17
docbm.cxx
sw/source/core/doc/docbm.cxx
+13
-17
No files found.
sw/source/core/doc/docbm.cxx
Dosyayı görüntüle @
068887ed
...
...
@@ -1126,42 +1126,38 @@ namespace sw { namespace mark
namespace
{
// Array structure: 2 longs,
// 1st long contains the type and position in the DocArray,
// 2nd long contains the ContentPosition
// CntntType --
// 0x2000 = Paragraph anchored frame
// 0x2001 = frame anchored at character, which should be moved
class
_SwSaveTypeCountContent
{
union
{
struct
{
sal_uInt16
nType
,
nCount
;
}
TC
;
sal_uLong
nTypeCount
;
}
TYPECOUNT
;
sal_uInt16
nType
;
sal_uInt16
nCount
;
sal_Int32
nContent
;
public
:
_SwSaveTypeCountContent
()
{
TYPECOUNT
.
nTypeCount
=
0
;
nContent
=
0
;
}
_SwSaveTypeCountContent
()
{
nType
=
0
;
nCount
=
0
;
nContent
=
0
;
}
_SwSaveTypeCountContent
(
const
std
::
vector
<
sal_uLong
>
&
rArr
,
sal_uInt16
&
rPos
)
{
TYPECOUNT
.
nTypeCount
=
rArr
[
rPos
++
];
nType
=
static_cast
<
sal_uInt16
>
(
rArr
[
rPos
++
]);
nCount
=
static_cast
<
sal_uInt16
>
(
rArr
[
rPos
++
]);
nContent
=
static_cast
<
sal_Int32
>
(
rArr
[
rPos
++
]);
}
void
Add
(
std
::
vector
<
sal_uLong
>
&
rArr
)
{
rArr
.
push_back
(
TYPECOUNT
.
nTypeCount
);
rArr
.
push_back
(
nType
);
rArr
.
push_back
(
nCount
);
rArr
.
push_back
(
nContent
);
}
void
SetType
(
sal_uInt16
n
)
{
TYPECOUNT
.
TC
.
nType
=
n
;
}
sal_uInt16
GetType
()
const
{
return
TYPECOUNT
.
TC
.
nType
;
}
void
SetType
(
sal_uInt16
n
)
{
nType
=
n
;
}
sal_uInt16
GetType
()
const
{
return
nType
;
}
void
SetCount
(
sal_uInt16
n
)
{
TYPECOUNT
.
TC
.
nCount
=
n
;
}
sal_uInt16
GetCount
()
const
{
return
TYPECOUNT
.
TC
.
nCount
;
}
sal_uInt16
IncCount
()
{
return
++
TYPECOUNT
.
TC
.
nCount
;
}
sal_uInt16
DecCount
()
{
return
--
TYPECOUNT
.
TC
.
nCount
;
}
void
SetCount
(
sal_uInt16
n
)
{
nCount
=
n
;
}
sal_uInt16
GetCount
()
const
{
return
nCount
;
}
sal_uInt16
IncCount
()
{
return
++
nCount
;
}
sal_uInt16
DecCount
()
{
return
--
nCount
;
}
void
SetContent
(
sal_Int32
n
)
{
nContent
=
n
;
}
sal_Int32
GetContent
()
const
{
return
nContent
;
}
...
...
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