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
80e4b4e5
Kaydet (Commit)
80e4b4e5
authored
Mar 10, 2012
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
mark static data that is const as const
üst
1ed8aae1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
17 deletions
+18
-17
datecode.h
hwpfilter/source/datecode.h
+7
-7
hbox.cxx
hwpfilter/source/hbox.cxx
+10
-9
hwpreader.cxx
hwpfilter/source/hwpreader.cxx
+1
-1
No files found.
hwpfilter/source/datecode.h
Dosyayı görüntüle @
80e4b4e5
...
...
@@ -29,27 +29,27 @@
#ifndef __DATECODE_H__
#define __DATACODE_H__
static
hchar
defaultform
[]
=
static
const
hchar
defaultform
[]
=
{
'1'
,
0x9165
,
32
,
'2'
,
0xB6A9
,
32
,
'3'
,
0xB7A9
,
0
};
#ifdef _DATECODE_WEEK_DEFINES_
static
hchar
kor_week
[]
=
static
const
hchar
kor_week
[]
=
{
0xB7A9
,
0xB6A9
,
0xD1C1
,
0xAE81
,
0xA1A2
,
0x8B71
,
0xC9A1
};
static
hchar
china_week
[]
=
static
const
hchar
china_week
[]
=
{
0x4CC8
,
0x4BE4
,
0x525A
,
0x48D8
,
0x45AB
,
0x4270
,
0x50B4
};
static
char
eng_week
[]
=
{
"SunMonTueWedThuFriSat"
};
static
char
eng_mon
[]
=
{
"JanFebMarAprMayJunJulAugSepOctNovDec"
};
static
const
char
*
en_mon
[]
=
static
c
onst
c
har
eng_week
[]
=
{
"SunMonTueWedThuFriSat"
};
static
c
onst
c
har
eng_mon
[]
=
{
"JanFebMarAprMayJunJulAugSepOctNovDec"
};
static
const
char
*
const
en_mon
[]
=
{
"January"
,
"February"
,
"March"
,
"April"
,
"May"
,
"June"
,
"July"
,
"August"
,
"September"
,
"October"
,
"November"
,
"December"
};
static
const
char
*
en_week
[]
=
static
const
char
*
const
en_week
[]
=
{
"Sunday"
,
"Monday"
,
"Tuesday"
,
"Wednesday"
,
"Thursday"
,
"Friday"
,
"Saturday"
...
...
hwpfilter/source/hbox.cxx
Dosyayı görüntüle @
80e4b4e5
...
...
@@ -57,7 +57,7 @@ HBox::~HBox()
int
HBox
::
WSize
(
void
)
{
static
int
wsize
[
32
]
=
static
const
int
wsize
[
32
]
=
{
1
,
4
,
4
,
4
,
4
,
4
,
4
,
42
,
/* dateform */
48
,
4
,
4
,
4
,
4
,
1
,
4
,
4
,
/* hidden */
...
...
@@ -154,7 +154,8 @@ DateCode::DateCode(void):HBox(CH_DATE_CODE)
int
DateCode
::
GetString
(
hchar
*
hstr
,
int
slen
)
{
hchar
*
fmt
,
*
d
;
const
hchar
*
fmt
;
hchar
*
d
;
int
i
,
num
;
const
char
*
form
;
char
cbuf
[
256
];
...
...
@@ -458,10 +459,10 @@ int MailMerge::GetString(hchar * hstr, int )
static
hchar
olHanglJaso
(
int
num
,
int
type
)
{
static
unsigned
char
han_init
[]
=
static
const
unsigned
char
han_init
[]
=
{
"
\x88\x90\x94\x9c\xa0\xa4\xac\xb4\xb8\xc0\xc4\xc8\xcc\xd0
"
};
static
unsigned
char
jung
[]
=
{
3
,
5
,
7
,
11
,
13
,
19
,
20
,
26
,
27
,
29
,
30
};
static
unsigned
char
jung2
[]
=
{
3
,
7
,
13
,
20
,
27
,
29
,
30
};
static
const
unsigned
char
jung
[]
=
{
3
,
5
,
7
,
11
,
13
,
19
,
20
,
26
,
27
,
29
,
30
};
static
const
unsigned
char
jung2
[]
=
{
3
,
7
,
13
,
20
,
27
,
29
,
30
};
hchar
hh
=
0
;
...
...
@@ -490,9 +491,9 @@ static hchar olHanglJaso(int num, int type)
}
static
hchar
*
GetOutlineStyleChars
(
int
style
)
static
const
hchar
*
GetOutlineStyleChars
(
int
style
)
{
static
hchar
out_bul_style_entry
[
5
][
8
]
=
// extern
static
const
hchar
out_bul_style_entry
[
5
][
8
]
=
// extern
{
{
// 0 OLSTY_BULLET1
0x2f18
,
0x2f12
,
0x2f08
,
0x2f02
,
0x2f06
,
0x2f00
,
0x2043
,
0x0000
...
...
@@ -523,7 +524,7 @@ static void getOutlineNumStr(int style, int level, int num, hchar * hstr)
U_ROM
=
0x01
,
L_ROM
=
0x02
,
U_ENG
=
0x04
,
L_ENG
=
0x08
,
HAN
=
0x10
,
NUM
=
0x20
,
L_BR
=
0x40
,
R_BR
=
0x80
};
static
unsigned
char
type_tbl
[][
MAX_OUTLINE_LEVEL
]
=
static
const
unsigned
char
type_tbl
[][
MAX_OUTLINE_LEVEL
]
=
{
{
U_ROM
,
HAN
,
NUM
,
HAN
|
R_BR
,
L_BR
|
NUM
|
R_BR
,
...
...
@@ -590,7 +591,7 @@ enum
*/
hchar
*
Outline
::
GetUnicode
(
hchar
*
hstr
,
int
)
{
hchar
*
p
;
const
hchar
*
p
;
hchar
buffer
[
255
];
buffer
[
0
]
=
0
;
...
...
hwpfilter/source/hwpreader.cxx
Dosyayı görüntüle @
80e4b4e5
...
...
@@ -3311,7 +3311,7 @@ void HwpReader::makeDateFormat(DateCode * hbox)
int
zero_check
=
0
;
hbox
->
format
[
DATE_SIZE
-
1
]
=
0
;
hchar
*
fmt
=
hbox
->
format
[
0
]
?
hbox
->
format
:
defaultform
;
const
hchar
*
fmt
=
hbox
->
format
[
0
]
?
hbox
->
format
:
defaultform
;
for
(
;
*
fmt
;
fmt
++
)
{
...
...
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