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
9d97a2af
Kaydet (Commit)
9d97a2af
authored
Nis 25, 2013
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: I7dcb2dcef78c67d90ff2dea58c1374bd17ac58af
üst
52b618e1
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
49 additions
and
49 deletions
+49
-49
documentlockfile.hxx
include/svl/documentlockfile.hxx
+5
-5
nranges.hxx
include/svl/nranges.hxx
+3
-3
itemholder2.cxx
svl/source/config/itemholder2.cxx
+2
-2
itempool.cxx
svl/source/items/itempool.cxx
+1
-1
itemset.cxx
svl/source/items/itemset.cxx
+8
-8
nranges.cxx
svl/source/items/nranges.cxx
+6
-6
poolio.cxx
svl/source/items/poolio.cxx
+1
-1
ptitem.cxx
svl/source/items/ptitem.cxx
+2
-2
srchitem.cxx
svl/source/items/srchitem.cxx
+1
-1
szitem.cxx
svl/source/items/szitem.cxx
+2
-2
documentlockfile.cxx
svl/source/misc/documentlockfile.cxx
+7
-7
inethist.cxx
svl/source/misc/inethist.cxx
+4
-4
lockfilecommon.cxx
svl/source/misc/lockfilecommon.cxx
+5
-5
sharecontrolfile.cxx
svl/source/misc/sharecontrolfile.cxx
+2
-2
No files found.
include/svl/documentlockfile.hxx
Dosyayı görüntüle @
9d97a2af
...
...
@@ -35,7 +35,7 @@ namespace svt {
class
SVL_DLLPUBLIC
DocumentLockFile
:
public
LockFileCommon
{
// the workaround for automated testing!
static
sal_B
ool
m_bAllowInteraction
;
static
b
ool
m_bAllowInteraction
;
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
io
::
XInputStream
>
OpenStream
();
...
...
@@ -45,15 +45,15 @@ public:
DocumentLockFile
(
const
OUString
&
aOrigURL
);
~
DocumentLockFile
();
sal_B
ool
CreateOwnLockFile
();
b
ool
CreateOwnLockFile
();
::
com
::
sun
::
star
::
uno
::
Sequence
<
OUString
>
GetLockData
();
sal_B
ool
OverwriteOwnLockFile
();
b
ool
OverwriteOwnLockFile
();
void
RemoveFile
();
// the methods allow to control whether UI interaction regarding the locked document file is allowed
// this is a workaround for automated tests
static
void
AllowInteraction
(
sal_B
ool
bAllow
)
{
m_bAllowInteraction
=
bAllow
;
}
static
sal_B
ool
IsInteractionAllowed
()
{
return
m_bAllowInteraction
;
}
static
void
AllowInteraction
(
b
ool
bAllow
)
{
m_bAllowInteraction
=
bAllow
;
}
static
b
ool
IsInteractionAllowed
()
{
return
m_bAllowInteraction
;
}
};
}
...
...
include/svl/nranges.hxx
Dosyayı görüntüle @
9d97a2af
...
...
@@ -42,8 +42,8 @@ public:
~
SfxUShortRanges
()
{
delete
[]
_pRanges
;
}
sal_Bool
operator
==
(
const
SfxUShortRanges
&
)
const
;
sal_Bool
operator
!=
(
const
SfxUShortRanges
&
rRanges
)
const
bool
operator
==
(
const
SfxUShortRanges
&
)
const
;
bool
operator
!=
(
const
SfxUShortRanges
&
rRanges
)
const
{
return
!
(
*
this
==
rRanges
);
}
SfxUShortRanges
&
operator
=
(
const
SfxUShortRanges
&
);
...
...
@@ -53,7 +53,7 @@ public:
SfxUShortRanges
&
operator
/=
(
const
SfxUShortRanges
&
);
sal_uInt16
Count
()
const
;
sal_Bool
IsEmpty
()
const
bool
IsEmpty
()
const
{
return
!
_pRanges
||
0
==
*
_pRanges
;
}
operator
const
sal_uInt16
*
()
const
...
...
svl/source/config/itemholder2.cxx
Dosyayı görüntüle @
9d97a2af
...
...
@@ -48,10 +48,10 @@ ItemHolder2::ItemHolder2()
#ifdef DBG_UTIL
catch
(
const
css
::
uno
::
Exception
&
rEx
)
{
static
sal_Bool
bMessage
=
sal_T
rue
;
static
bool
bMessage
=
t
rue
;
if
(
bMessage
)
{
bMessage
=
sal_F
alse
;
bMessage
=
f
alse
;
OString
sMsg
(
"CreateInstance with arguments exception: "
);
sMsg
+=
OString
(
rEx
.
Message
.
getStr
(),
rEx
.
Message
.
getLength
(),
...
...
svl/source/items/itempool.cxx
Dosyayı görüntüle @
9d97a2af
...
...
@@ -394,7 +394,7 @@ void SfxItemPool::SetSecondaryPool( SfxItemPool *pPool )
if
(
!
pImp
->
maPoolItems
.
empty
()
&&
!
pImp
->
mpSecondary
->
pImp
->
maPoolItems
.
empty
()
)
{
// hat der master SetItems?
sal_Bool
bHasSetItems
=
sal_F
alse
;
bool
bHasSetItems
=
f
alse
;
for
(
sal_uInt16
i
=
0
;
!
bHasSetItems
&&
i
<
pImp
->
mnEnd
-
pImp
->
mnStart
;
++
i
)
bHasSetItems
=
pImp
->
ppStaticDefaults
[
i
]
->
ISA
(
SfxSetItem
);
...
...
svl/source/items/itemset.cxx
Dosyayı görüntüle @
9d97a2af
...
...
@@ -1059,7 +1059,7 @@ void SfxItemSet::Intersect( const SfxItemSet& rSet )
}
// teste mal, ob sich die Which-Bereiche unterscheiden.
sal_Bool
bEqual
=
sal_T
rue
;
bool
bEqual
=
t
rue
;
sal_uInt16
*
pWh1
=
_pWhichRanges
;
sal_uInt16
*
pWh2
=
rSet
.
_pWhichRanges
;
sal_uInt16
nSize
=
0
;
...
...
@@ -1068,7 +1068,7 @@ void SfxItemSet::Intersect( const SfxItemSet& rSet )
{
if
(
*
pWh1
!=
*
pWh2
)
{
bEqual
=
sal_F
alse
;
bEqual
=
f
alse
;
break
;
}
if
(
n
&
1
)
...
...
@@ -1130,7 +1130,7 @@ void SfxItemSet::Differentiate( const SfxItemSet& rSet )
return
;
// teste mal, ob sich die Which-Bereiche unterscheiden.
sal_Bool
bEqual
=
sal_T
rue
;
bool
bEqual
=
t
rue
;
sal_uInt16
*
pWh1
=
_pWhichRanges
;
sal_uInt16
*
pWh2
=
rSet
.
_pWhichRanges
;
sal_uInt16
nSize
=
0
;
...
...
@@ -1139,7 +1139,7 @@ void SfxItemSet::Differentiate( const SfxItemSet& rSet )
{
if
(
*
pWh1
!=
*
pWh2
)
{
bEqual
=
sal_F
alse
;
bEqual
=
f
alse
;
break
;
}
if
(
n
&
1
)
...
...
@@ -1347,7 +1347,7 @@ void SfxItemSet::MergeValues( const SfxItemSet& rSet, sal_Bool bIgnoreDefaults )
DBG_ASSERT
(
GetPool
()
==
rSet
.
GetPool
(),
"MergeValues mit verschiedenen Pools"
);
// teste mal, ob sich die Which-Bereiche unterscheiden.
sal_Bool
bEqual
=
sal_T
rue
;
bool
bEqual
=
t
rue
;
sal_uInt16
*
pWh1
=
_pWhichRanges
;
sal_uInt16
*
pWh2
=
rSet
.
_pWhichRanges
;
sal_uInt16
nSize
=
0
;
...
...
@@ -1356,7 +1356,7 @@ void SfxItemSet::MergeValues( const SfxItemSet& rSet, sal_Bool bIgnoreDefaults )
{
if
(
*
pWh1
!=
*
pWh2
)
{
bEqual
=
sal_F
alse
;
bEqual
=
f
alse
;
break
;
}
if
(
n
&
1
)
...
...
@@ -1964,13 +1964,13 @@ const SfxPoolItem* SfxAllItemSet::Put( const SfxPoolItem& rItem, sal_uInt16 nWhi
const
SfxPoolItem
&
rNew
=
_pPool
->
Put
(
rItem
,
nWhich
);
// altes Item merken
sal_Bool
bIncrementCount
=
sal_F
alse
;
bool
bIncrementCount
=
f
alse
;
const
SfxPoolItem
*
pOld
=
*
(
_aItems
+
nPos
);
if
(
reinterpret_cast
<
SfxPoolItem
*
>
(
-
1
)
==
pOld
)
// state "dontcare"
pOld
=
NULL
;
if
(
!
pOld
)
{
bIncrementCount
=
sal_T
rue
;
bIncrementCount
=
t
rue
;
pOld
=
_pParent
?
&
_pParent
->
Get
(
nWhich
,
sal_True
)
:
nWhich
<=
SFX_WHICH_MAX
?
&
_pPool
->
GetDefaultItem
(
nWhich
)
:
0
;
...
...
svl/source/items/nranges.cxx
Dosyayı görüntüle @
9d97a2af
...
...
@@ -201,20 +201,20 @@ SfxUShortRanges::SfxUShortRanges( const sal_uInt16* pArr )
//------------------------------------------------------------------------
sal_B
ool
SfxUShortRanges
::
operator
==
(
const
SfxUShortRanges
&
rOther
)
const
b
ool
SfxUShortRanges
::
operator
==
(
const
SfxUShortRanges
&
rOther
)
const
{
// Object pointers equal?
if
(
this
==
&
rOther
)
return
sal_T
rue
;
return
t
rue
;
// Ranges pointers equal?
if
(
_pRanges
==
rOther
.
_pRanges
)
return
sal_T
rue
;
return
t
rue
;
// Counts equal?
sal_uInt16
nCount
=
Count
();
if
(
nCount
!=
rOther
.
Count
()
)
return
sal_F
alse
;
return
f
alse
;
// Check arrays.
sal_uInt16
n
=
0
;
...
...
@@ -222,12 +222,12 @@ sal_Bool SfxUShortRanges::operator==( const SfxUShortRanges &rOther ) const
{
// Elements at current position equal?
if
(
_pRanges
[
n
]
!=
rOther
.
_pRanges
[
n
]
)
return
sal_F
alse
;
return
f
alse
;
++
n
;
}
return
sal_T
rue
;
return
t
rue
;
}
//------------------------------------------------------------------------
...
...
svl/source/items/poolio.cxx
Dosyayı görüntüle @
9d97a2af
...
...
@@ -1544,7 +1544,7 @@ const SfxPoolItem* SfxItemPool::LoadItem( SvStream &rStream, bool bDirect,
sal_uInt16
nWhich
(
0
),
nSlot
(
0
);
// nSurrogate;
rStream
>>
nWhich
>>
nSlot
;
sal_B
ool
bDontPut
=
(
SfxItemPool
*
)
-
1
==
pRefPool
;
b
ool
bDontPut
=
(
SfxItemPool
*
)
-
1
==
pRefPool
;
if
(
bDontPut
||
!
pRefPool
)
pRefPool
=
this
;
...
...
svl/source/items/ptitem.cxx
Dosyayı görüntüle @
9d97a2af
...
...
@@ -120,7 +120,7 @@ SvStream& SfxPointItem::Store(SvStream &rStream, sal_uInt16 ) const
bool
SfxPointItem
::
QueryValue
(
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
)
const
{
sal_B
ool
bConvert
=
0
!=
(
nMemberId
&
CONVERT_TWIPS
);
b
ool
bConvert
=
0
!=
(
nMemberId
&
CONVERT_TWIPS
);
awt
::
Point
aTmp
(
aVal
.
X
(),
aVal
.
Y
());
if
(
bConvert
)
{
...
...
@@ -144,7 +144,7 @@ bool SfxPointItem::QueryValue( uno::Any& rVal,
bool
SfxPointItem
::
PutValue
(
const
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
)
{
sal_B
ool
bConvert
=
0
!=
(
nMemberId
&
CONVERT_TWIPS
);
b
ool
bConvert
=
0
!=
(
nMemberId
&
CONVERT_TWIPS
);
nMemberId
&=
~
CONVERT_TWIPS
;
bool
bRet
=
false
;
awt
::
Point
aValue
;
...
...
svl/source/items/srchitem.cxx
Dosyayı görüntüle @
9d97a2af
...
...
@@ -220,7 +220,7 @@ SfxPoolItem* SvxSearchItem::Clone( SfxItemPool *) const
// -----------------------------------------------------------------------
//! used below
static
sal_B
ool
operator
==
(
const
SearchOptions
&
rItem1
,
const
SearchOptions
&
rItem2
)
static
b
ool
operator
==
(
const
SearchOptions
&
rItem1
,
const
SearchOptions
&
rItem2
)
{
return
rItem1
.
algorithmType
==
rItem2
.
algorithmType
&&
rItem1
.
searchFlag
==
rItem2
.
searchFlag
&&
...
...
svl/source/items/szitem.cxx
Dosyayı görüntüle @
9d97a2af
...
...
@@ -115,7 +115,7 @@ SvStream& SfxSizeItem::Store(SvStream &rStream, sal_uInt16 ) const
bool
SfxSizeItem
::
QueryValue
(
com
::
sun
::
star
::
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
)
const
{
sal_B
ool
bConvert
=
0
!=
(
nMemberId
&
CONVERT_TWIPS
);
b
ool
bConvert
=
0
!=
(
nMemberId
&
CONVERT_TWIPS
);
nMemberId
&=
~
CONVERT_TWIPS
;
Size
aTmp
(
aVal
);
...
...
@@ -146,7 +146,7 @@ bool SfxSizeItem::QueryValue( com::sun::star::uno::Any& rVal,
bool
SfxSizeItem
::
PutValue
(
const
com
::
sun
::
star
::
uno
::
Any
&
rVal
,
sal_uInt8
nMemberId
)
{
sal_B
ool
bConvert
=
0
!=
(
nMemberId
&
CONVERT_TWIPS
);
b
ool
bConvert
=
0
!=
(
nMemberId
&
CONVERT_TWIPS
);
nMemberId
&=
~
CONVERT_TWIPS
;
bool
bRet
=
false
;
...
...
svl/source/misc/documentlockfile.cxx
Dosyayı görüntüle @
9d97a2af
...
...
@@ -50,7 +50,7 @@ using namespace ::com::sun::star;
namespace
svt
{
sal_Bool
DocumentLockFile
::
m_bAllowInteraction
=
sal_T
rue
;
bool
DocumentLockFile
::
m_bAllowInteraction
=
t
rue
;
// ----------------------------------------------------------------------
DocumentLockFile
::
DocumentLockFile
(
const
OUString
&
aOrigURL
)
...
...
@@ -85,7 +85,7 @@ void DocumentLockFile::WriteEntryToStream( uno::Sequence< OUString > aEntry, uno
}
// ----------------------------------------------------------------------
sal_B
ool
DocumentLockFile
::
CreateOwnLockFile
()
b
ool
DocumentLockFile
::
CreateOwnLockFile
()
{
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
...
...
@@ -125,10 +125,10 @@ sal_Bool DocumentLockFile::CreateOwnLockFile()
}
catch
(
ucb
::
NameClashException
&
)
{
return
sal_F
alse
;
return
f
alse
;
}
return
sal_T
rue
;
return
t
rue
;
}
// ----------------------------------------------------------------------
...
...
@@ -168,7 +168,7 @@ uno::Reference< io::XInputStream > DocumentLockFile::OpenStream()
}
// ----------------------------------------------------------------------
sal_B
ool
DocumentLockFile
::
OverwriteOwnLockFile
()
b
ool
DocumentLockFile
::
OverwriteOwnLockFile
()
{
// allows to overwrite the lock file with the current data
try
...
...
@@ -188,10 +188,10 @@ sal_Bool DocumentLockFile::OverwriteOwnLockFile()
}
catch
(
uno
::
Exception
&
)
{
return
sal_F
alse
;
return
f
alse
;
}
return
sal_T
rue
;
return
t
rue
;
}
// ----------------------------------------------------------------------
...
...
svl/source/misc/inethist.cxx
Dosyayı görüntüle @
9d97a2af
...
...
@@ -94,20 +94,20 @@ class INetURLHistory_Impl
/** Comparison.
*/
sal_B
ool
operator
==
(
const
hash_entry
&
rOther
)
const
b
ool
operator
==
(
const
hash_entry
&
rOther
)
const
{
return
(
m_nHash
==
rOther
.
m_nHash
);
}
sal_B
ool
operator
<
(
const
hash_entry
&
rOther
)
const
b
ool
operator
<
(
const
hash_entry
&
rOther
)
const
{
return
(
m_nHash
<
rOther
.
m_nHash
);
}
sal_B
ool
operator
==
(
sal_uInt32
nHash
)
const
b
ool
operator
==
(
sal_uInt32
nHash
)
const
{
return
(
m_nHash
==
nHash
);
}
sal_B
ool
operator
<
(
sal_uInt32
nHash
)
const
b
ool
operator
<
(
sal_uInt32
nHash
)
const
{
return
(
m_nHash
<
nHash
);
}
...
...
svl/source/misc/lockfilecommon.cxx
Dosyayı görüntüle @
9d97a2af
...
...
@@ -134,8 +134,8 @@ uno::Sequence< OUString > LockFileCommon::ParseEntry( const uno::Sequence< sal_I
OUString
LockFileCommon
::
ParseName
(
const
uno
::
Sequence
<
sal_Int8
>&
aBuffer
,
sal_Int32
&
io_nCurPos
)
{
OStringBuffer
aResult
;
sal_Bool
bHaveName
=
sal_F
alse
;
sal_Bool
bEscape
=
sal_F
alse
;
bool
bHaveName
=
f
alse
;
bool
bEscape
=
f
alse
;
while
(
!
bHaveName
)
{
...
...
@@ -149,15 +149,15 @@ OUString LockFileCommon::ParseName( const uno::Sequence< sal_Int8 >& aBuffer, sa
else
throw
io
::
WrongFormatException
();
bEscape
=
sal_F
alse
;
bEscape
=
f
alse
;
io_nCurPos
++
;
}
else
if
(
aBuffer
[
io_nCurPos
]
==
','
||
aBuffer
[
io_nCurPos
]
==
';'
)
bHaveName
=
sal_T
rue
;
bHaveName
=
t
rue
;
else
{
if
(
aBuffer
[
io_nCurPos
]
==
'\\'
)
bEscape
=
sal_T
rue
;
bEscape
=
t
rue
;
else
aResult
.
append
(
(
sal_Char
)
aBuffer
[
io_nCurPos
]
);
...
...
svl/source/misc/sharecontrolfile.cxx
Dosyayı görüntüle @
9d97a2af
...
...
@@ -239,7 +239,7 @@ uno::Sequence< OUString > ShareControlFile::InsertOwnEntry()
uno
::
Sequence
<
::
uno
::
Sequence
<
OUString
>
>
aNewData
(
m_aUsersData
.
getLength
()
+
1
);
uno
::
Sequence
<
OUString
>
aNewEntry
=
GenerateOwnEntry
();
sal_Bool
bExists
=
sal_F
alse
;
bool
bExists
=
f
alse
;
sal_Int32
nNewInd
=
0
;
for
(
sal_Int32
nInd
=
0
;
nInd
<
m_aUsersData
.
getLength
();
nInd
++
)
{
...
...
@@ -252,7 +252,7 @@ uno::Sequence< OUString > ShareControlFile::InsertOwnEntry()
if
(
!
bExists
)
{
aNewData
[
nNewInd
]
=
aNewEntry
;
bExists
=
sal_T
rue
;
bExists
=
t
rue
;
}
}
else
...
...
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