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
38b29bbc
Kaydet (Commit)
38b29bbc
authored
Eyl 25, 2012
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: Ib9a6f3ecbe38cdad6e28b4d8a9ae13d1f5bc4265
üst
5ae27819
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
40 deletions
+40
-40
hintids.hxx
sw/inc/hintids.hxx
+1
-1
tabcol.hxx
sw/inc/tabcol.hxx
+1
-1
format.cxx
sw/source/core/attr/format.cxx
+6
-6
swatrset.cxx
sw/source/core/attr/swatrset.cxx
+3
-3
calc.cxx
sw/source/core/bastyp/calc.cxx
+24
-24
swcache.cxx
sw/source/core/bastyp/swcache.cxx
+2
-2
tabcol.cxx
sw/source/core/bastyp/tabcol.cxx
+3
-3
No files found.
sw/inc/hintids.hxx
Dosyayı görüntüle @
38b29bbc
...
...
@@ -469,7 +469,7 @@ extern sal_uInt16 aCharAutoFmtSetRange[];
extern
sal_uInt16
aPgFrmFmtSetRange
[];
// check if ID is InRange of AttrSet-Ids
sal_B
ool
IsInRange
(
const
sal_uInt16
*
pRange
,
const
sal_uInt16
nId
);
b
ool
IsInRange
(
const
sal_uInt16
*
pRange
,
const
sal_uInt16
nId
);
#endif
...
...
sw/inc/tabcol.hxx
Dosyayı görüntüle @
38b29bbc
...
...
@@ -68,7 +68,7 @@ public:
SwTabCols
(
sal_uInt16
nSize
=
0
);
SwTabCols
(
const
SwTabCols
&
);
SwTabCols
&
operator
=
(
const
SwTabCols
&
);
sal_B
ool
operator
==
(
const
SwTabCols
&
rCmp
)
const
;
b
ool
operator
==
(
const
SwTabCols
&
rCmp
)
const
;
long
&
operator
[](
sal_uInt16
nPos
)
{
return
aData
[
nPos
].
nPos
;
}
long
operator
[](
sal_uInt16
nPos
)
const
{
return
aData
[
nPos
].
nPos
;
}
sal_uInt16
Count
()
const
{
return
sal
::
static_int_cast
<
sal_uInt16
>
(
aData
.
size
());
}
...
...
sw/source/core/attr/format.cxx
Dosyayı görüntüle @
38b29bbc
...
...
@@ -249,7 +249,7 @@ SwFmt::~SwFmt()
void
SwFmt
::
Modify
(
const
SfxPoolItem
*
pOldValue
,
const
SfxPoolItem
*
pNewValue
)
{
sal_Bool
bContinue
=
sal_True
;
// sal_T
rue = pass on to dependent ones
bool
bContinue
=
true
;
// t
rue = pass on to dependent ones
sal_uInt16
nWhich
=
pOldValue
?
pOldValue
->
Which
()
:
pNewValue
?
pNewValue
->
Which
()
:
0
;
...
...
@@ -293,7 +293,7 @@ void SwFmt::Modify( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewValue )
if
(
aNew
.
Count
()
)
NotifyClients
(
&
aOld
,
&
aNew
);
bContinue
=
sal_F
alse
;
bContinue
=
f
alse
;
}
break
;
case
RES_FMT_CHG
:
...
...
@@ -318,7 +318,7 @@ void SwFmt::Modify( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewValue )
// pass Hint only to dependent formats (no Frames)
ModifyBroadcast
(
pOldValue
,
pNewValue
,
TYPE
(
SwFmt
)
);
bContinue
=
sal_F
alse
;
bContinue
=
f
alse
;
}
break
;
default
:
...
...
@@ -328,7 +328,7 @@ void SwFmt::Modify( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewValue )
{
// DropCaps might come into this block
OSL_ENSURE
(
RES_PARATR_DROP
==
nWhich
,
"Modify was sent without sender"
);
bContinue
=
sal_F
alse
;
bContinue
=
f
alse
;
}
}
}
...
...
@@ -529,7 +529,7 @@ sal_uInt16 SwFmt::ResetAllFmtAttr()
SwAttrSet
aOld
(
*
aSet
.
GetPool
(),
aSet
.
GetRanges
()
),
aNew
(
*
aSet
.
GetPool
(),
aSet
.
GetRanges
()
);
sal_B
ool
bRet
=
0
!=
aSet
.
ClearItem_BC
(
0
,
&
aOld
,
&
aNew
);
b
ool
bRet
=
0
!=
aSet
.
ClearItem_BC
(
0
,
&
aOld
,
&
aNew
);
if
(
bRet
)
{
SwAttrSetChg
aChgOld
(
aSet
,
aOld
);
...
...
@@ -566,7 +566,7 @@ void SwFmt::DelDiffs( const SfxItemSet& rSet )
SwAttrSet
aOld
(
*
aSet
.
GetPool
(),
aSet
.
GetRanges
()
),
aNew
(
*
aSet
.
GetPool
(),
aSet
.
GetRanges
()
);
sal_B
ool
bRet
=
0
!=
aSet
.
Intersect_BC
(
rSet
,
&
aOld
,
&
aNew
);
b
ool
bRet
=
0
!=
aSet
.
Intersect_BC
(
rSet
,
&
aOld
,
&
aNew
);
if
(
bRet
)
{
SwAttrSetChg
aChgOld
(
aSet
,
aOld
);
...
...
sw/source/core/attr/swatrset.cxx
Dosyayı görüntüle @
38b29bbc
...
...
@@ -373,15 +373,15 @@ void SwAttrSet::CopyToModify( SwModify& rMod ) const
}
/// check if ID is in range of attribute set IDs
sal_B
ool
IsInRange
(
const
sal_uInt16
*
pRange
,
const
sal_uInt16
nId
)
b
ool
IsInRange
(
const
sal_uInt16
*
pRange
,
const
sal_uInt16
nId
)
{
while
(
*
pRange
)
{
if
(
*
pRange
<=
nId
&&
nId
<=
*
(
pRange
+
1
)
)
return
sal_T
rue
;
return
t
rue
;
pRange
+=
2
;
}
return
sal_F
alse
;
return
f
alse
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/core/bastyp/calc.cxx
Dosyayı görüntüle @
38b29bbc
...
...
@@ -671,13 +671,13 @@ SwCalcOper SwCalc::GetToken()
coStartFlags
,
aEmptyStr
,
coContFlags
,
aEmptyStr
);
sal_Bool
bSetError
=
sal_T
rue
;
bool
bSetError
=
t
rue
;
xub_StrLen
nRealStt
=
nCommandPos
+
(
xub_StrLen
)
aRes
.
LeadingWhiteSpace
;
if
(
aRes
.
TokenType
&
(
KParseType
::
ASC_NUMBER
|
KParseType
::
UNI_NUMBER
)
)
{
nNumberValue
.
PutDouble
(
aRes
.
Value
);
eCurrOper
=
CALC_NUMBER
;
bSetError
=
sal_F
alse
;
bSetError
=
f
alse
;
}
else
if
(
aRes
.
TokenType
&
KParseType
::
IDENTNAME
)
{
...
...
@@ -721,13 +721,13 @@ SwCalcOper SwCalc::GetToken()
}
aVarName
=
aName
;
eCurrOper
=
CALC_NAME
;
bSetError
=
sal_F
alse
;
bSetError
=
f
alse
;
}
else
if
(
aRes
.
TokenType
&
KParseType
::
DOUBLE_QUOTE_STRING
)
{
nNumberValue
.
PutString
(
String
(
aRes
.
DequotedNameOrString
));
eCurrOper
=
CALC_NUMBER
;
bSetError
=
sal_F
alse
;
bSetError
=
f
alse
;
}
else
if
(
aRes
.
TokenType
&
KParseType
::
ONE_SINGLE_CHAR
)
{
...
...
@@ -735,7 +735,7 @@ SwCalcOper SwCalc::GetToken()
static_cast
<
xub_StrLen
>
(
aRes
.
EndPos
)
-
nRealStt
));
if
(
1
==
aName
.
Len
()
)
{
bSetError
=
sal_F
alse
;
bSetError
=
f
alse
;
sal_Unicode
ch
=
aName
.
GetChar
(
0
);
switch
(
ch
)
{
...
...
@@ -815,16 +815,16 @@ SwCalcOper SwCalc::GetToken()
eCurrOper
=
CALC_NAME
;
}
else
bSetError
=
sal_T
rue
;
bSetError
=
t
rue
;
}
else
{
bSetError
=
sal_T
rue
;
bSetError
=
t
rue
;
}
break
;
default
:
bSetError
=
sal_T
rue
;
bSetError
=
t
rue
;
break
;
}
}
...
...
@@ -837,10 +837,10 @@ SwCalcOper SwCalc::GetToken()
{
sal_Unicode
ch
=
aName
.
GetChar
(
0
);
bSetError
=
sal_T
rue
;
bSetError
=
t
rue
;
if
(
'<'
==
ch
||
'>'
==
ch
)
{
bSetError
=
sal_F
alse
;
bSetError
=
f
alse
;
SwCalcOper
eTmp2
=
(
'<'
==
ch
)
?
CALC_LEQ
:
CALC_GEQ
;
eCurrOper
=
(
'<'
==
ch
)
?
CALC_LES
:
CALC_GRE
;
...
...
@@ -848,14 +848,14 @@ SwCalcOper SwCalc::GetToken()
if
(
2
==
aName
.
Len
()
&&
'='
==
aName
.
GetChar
(
1
)
)
eCurrOper
=
eTmp2
;
else
if
(
1
!=
aName
.
Len
()
)
bSetError
=
sal_T
rue
;
bSetError
=
t
rue
;
}
}
}
else
if
(
nRealStt
==
sCommand
.
Len
()
)
{
eCurrOper
=
CALC_ENDCALC
;
bSetError
=
sal_F
alse
;
bSetError
=
f
alse
;
}
if
(
bSetError
)
...
...
@@ -983,15 +983,15 @@ SwCalcOper SwCalc::GetToken()
case
'['
:
{
String
aStr
;
sal_Bool
bIgnore
=
sal_F
alse
;
bool
bIgnore
=
f
alse
;
do
{
while
(
0
!=
(
ch
=
NextCh
(
sCommand
,
nCommandPos
))
&&
ch
!=
']'
)
{
if
(
!
bIgnore
&&
'\\'
==
ch
)
bIgnore
=
sal_T
rue
;
bIgnore
=
t
rue
;
else
if
(
bIgnore
)
bIgnore
=
sal_F
alse
;
bIgnore
=
f
alse
;
aStr
+=
ch
;
}
...
...
@@ -1192,15 +1192,15 @@ SwSbxValue SwCalc::Term()
}
fVal
*=
fFac
;
sal_B
ool
bSign
;
b
ool
bSign
;
if
(
fVal
<
0.0
)
{
fVal
*=
-
1.0
;
bSign
=
sal_T
rue
;
bSign
=
t
rue
;
}
else
{
bSign
=
sal_F
alse
;
bSign
=
f
alse
;
}
// rounding
...
...
@@ -1268,7 +1268,7 @@ SwSbxValue SwCalc::Prim()
pfCalc
pFnc
=
0
;
sal_Bool
bChkTrig
=
sal_False
,
bChkPow
=
sal_F
alse
;
bool
bChkTrig
=
false
,
bChkPow
=
f
alse
;
switch
(
eCurrOper
)
{
...
...
@@ -1276,8 +1276,8 @@ SwSbxValue SwCalc::Prim()
case
CALC_COS
:
pFnc
=
&
cos
;
break
;
case
CALC_TAN
:
pFnc
=
&
tan
;
break
;
case
CALC_ATAN
:
pFnc
=
&
atan
;
break
;
case
CALC_ASIN
:
pFnc
=
&
asin
;
bChkTrig
=
sal_T
rue
;
break
;
case
CALC_ACOS
:
pFnc
=
&
acos
;
bChkTrig
=
sal_T
rue
;
break
;
case
CALC_ASIN
:
pFnc
=
&
asin
;
bChkTrig
=
t
rue
;
break
;
case
CALC_ACOS
:
pFnc
=
&
acos
;
bChkTrig
=
t
rue
;
break
;
case
CALC_NOT
:
{
...
...
@@ -1321,7 +1321,7 @@ SwSbxValue SwCalc::Prim()
else
{
nErg
=
nNumberValue
;
bChkPow
=
sal_T
rue
;
bChkPow
=
t
rue
;
}
break
;
...
...
@@ -1335,7 +1335,7 @@ SwSbxValue SwCalc::Prim()
else
{
nErg
=
VarLook
(
aVarName
)
->
nValue
;
bChkPow
=
sal_T
rue
;
bChkPow
=
t
rue
;
}
break
;
...
...
@@ -1355,7 +1355,7 @@ SwSbxValue SwCalc::Prim()
else
{
GetToken
();
bChkPow
=
sal_T
rue
;
// in order for =(7)^2 to work
bChkPow
=
t
rue
;
// in order for =(7)^2 to work
}
}
break
;
...
...
sw/source/core/bastyp/swcache.cxx
Dosyayı görüntüle @
38b29bbc
...
...
@@ -40,7 +40,7 @@ void SwCache::Check()
SAL_WARN_IF
(
pLast
->
GetNext
(),
"sw"
,
"Last but not last."
);
SAL_WARN_IF
(
pRealFirst
->
GetPrev
(),
"sw"
,
"First but not first."
);
sal_uInt16
nCnt
=
0
;
sal_Bool
bFirstFound
=
sal_F
alse
;
bool
bFirstFound
=
f
alse
;
SwCacheObj
*
pObj
=
pRealFirst
;
SwCacheObj
*
pRekursive
=
pObj
;
while
(
pObj
)
...
...
@@ -53,7 +53,7 @@ void SwCache::Check()
++
nCnt
;
if
(
pObj
==
pFirst
)
bFirstFound
=
sal_T
rue
;
bFirstFound
=
t
rue
;
if
(
!
pObj
->
GetNext
()
)
SAL_WARN_IF
(
pObj
!=
pLast
,
"sw"
,
"Last not Found."
);
pObj
=
pObj
->
GetNext
();
...
...
sw/source/core/bastyp/tabcol.cxx
Dosyayı görüntüle @
38b29bbc
...
...
@@ -80,7 +80,7 @@ SwTabCols &SwTabCols::operator=( const SwTabCols& rCpy )
return
*
this
;
}
sal_B
ool
SwTabCols
::
operator
==
(
const
SwTabCols
&
rCmp
)
const
b
ool
SwTabCols
::
operator
==
(
const
SwTabCols
&
rCmp
)
const
{
sal_uInt16
i
;
...
...
@@ -90,7 +90,7 @@ sal_Bool SwTabCols::operator==( const SwTabCols& rCmp ) const
nRightMax
==
rCmp
.
GetRightMax
()
&&
bLastRowAllowedToChange
==
rCmp
.
IsLastRowAllowedToChange
()
&&
Count
()
==
rCmp
.
Count
())
)
return
sal_F
alse
;
return
f
alse
;
for
(
i
=
0
;
i
<
Count
();
++
i
)
{
...
...
@@ -100,7 +100,7 @@ sal_Bool SwTabCols::operator==( const SwTabCols& rCmp ) const
return
sal_False
;
}
return
sal_T
rue
;
return
t
rue
;
}
void
SwTabCols
::
Insert
(
long
nValue
,
long
nMin
,
long
nMax
,
...
...
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