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
dfe544c8
Kaydet (Commit)
dfe544c8
authored
Agu 15, 2012
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: I784fb31bad1ff02987c24abbac04b38207a1f5cf
üst
065b5915
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
21 deletions
+19
-21
image.cxx
basic/source/classes/image.cxx
+10
-12
sbxmod.cxx
basic/source/classes/sbxmod.cxx
+4
-4
image.hxx
basic/source/inc/image.hxx
+5
-5
No files found.
basic/source/classes/image.cxx
Dosyayı görüntüle @
dfe544c8
...
...
@@ -38,7 +38,7 @@ SbiImage::SbiImage()
nDimBase
=
0
;
bInit
=
bError
=
false
;
bFirstInit
=
sal_T
rue
;
bFirstInit
=
t
rue
;
eCharSet
=
osl_getThreadTextEncoding
();
}
...
...
@@ -72,9 +72,9 @@ void SbiImage::Clear()
*
**************************************************************************/
sal_B
ool
SbiGood
(
SvStream
&
r
)
b
ool
SbiGood
(
SvStream
&
r
)
{
return
sal_Bool
(
!
r
.
IsEof
()
&&
r
.
GetError
()
==
SVSTREAM_OK
)
;
return
!
r
.
IsEof
()
&&
r
.
GetError
()
==
SVSTREAM_OK
;
}
// Open Record
...
...
@@ -100,7 +100,7 @@ void SbiCloseRecord( SvStream& r, sal_uIntPtr nOff )
*
**************************************************************************/
sal_B
ool
SbiImage
::
Load
(
SvStream
&
r
,
sal_uInt32
&
nVersion
)
b
ool
SbiImage
::
Load
(
SvStream
&
r
,
sal_uInt32
&
nVersion
)
{
sal_uInt16
nSign
,
nCount
;
...
...
@@ -226,10 +226,10 @@ done:
r
.
Seek
(
nLast
);
if
(
!
SbiGood
(
r
)
)
bError
=
true
;
return
sal_Bool
(
!
bError
)
;
return
!
bError
;
}
sal_B
ool
SbiImage
::
Save
(
SvStream
&
r
,
sal_uInt32
nVer
)
b
ool
SbiImage
::
Save
(
SvStream
&
r
,
sal_uInt32
nVer
)
{
bool
bLegacy
=
(
nVer
<
B_EXT_IMG_VERSION
);
...
...
@@ -240,7 +240,7 @@ sal_Bool SbiImage::Save( SvStream& r, sal_uInt32 nVer )
SbiImage
aEmptyImg
;
aEmptyImg
.
aName
=
aName
;
aEmptyImg
.
Save
(
r
,
B_LEGACYVERSION
);
return
sal_T
rue
;
return
t
rue
;
}
// First of all the header
sal_uIntPtr
nStart
=
SbiOpenRecord
(
r
,
B_MODULE
,
1
);
...
...
@@ -348,7 +348,7 @@ sal_Bool SbiImage::Save( SvStream& r, sal_uInt32 nVer )
SbiCloseRecord
(
r
,
nStart
);
if
(
!
SbiGood
(
r
)
)
bError
=
true
;
return
sal_Bool
(
!
bError
)
;
return
!
bError
;
}
/**************************************************************************
...
...
@@ -498,11 +498,9 @@ void SbiImage::ReleaseLegacyBuffer()
nLegacyCodeSize
=
0
;
}
sal_B
ool
SbiImage
::
ExceedsLegacyLimits
()
b
ool
SbiImage
::
ExceedsLegacyLimits
()
{
if
(
(
nStringSize
>
0xFF00L
)
||
(
CalcLegacyOffset
(
nCodeSize
)
>
0xFF00L
)
)
return
sal_True
;
return
sal_False
;
return
(
nStringSize
>
0xFF00L
)
||
(
CalcLegacyOffset
(
nCodeSize
)
>
0xFF00L
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
basic/source/classes/sbxmod.cxx
Dosyayı görüntüle @
dfe544c8
...
...
@@ -1314,8 +1314,8 @@ void SbModule::RunInit()
GetSbData
()
->
pInst
->
pRun
=
pRt
->
pNext
;
delete
pRt
;
GetSbData
()
->
pMod
=
pOldMod
;
pImage
->
bInit
=
sal_T
rue
;
pImage
->
bFirstInit
=
sal_F
alse
;
pImage
->
bInit
=
t
rue
;
pImage
->
bFirstInit
=
f
alse
;
// RunInit is not activ anymore
GetSbData
()
->
bRunInit
=
sal_False
;
...
...
@@ -1714,7 +1714,7 @@ sal_Bool SbModule::LoadData( SvStream& rStrm, sal_uInt16 nVer )
sal_Bool
SbModule
::
StoreData
(
SvStream
&
rStrm
)
const
{
sal_B
ool
bFixup
=
(
pImage
&&
!
pImage
->
ExceedsLegacyLimits
()
);
b
ool
bFixup
=
(
pImage
&&
!
pImage
->
ExceedsLegacyLimits
()
);
if
(
bFixup
)
fixUpMethodStart
(
true
);
sal_Bool
bRet
=
SbxObject
::
StoreData
(
rStrm
);
...
...
@@ -1815,7 +1815,7 @@ sal_Bool SbModule::StoreBinaryData( SvStream& rStrm, sal_uInt16 nVer )
sal_Bool
bRet
=
Compile
();
if
(
bRet
)
{
sal_B
ool
bFixup
=
(
!
nVer
&&
!
pImage
->
ExceedsLegacyLimits
()
);
// save in old image format, fix up method starts
b
ool
bFixup
=
(
!
nVer
&&
!
pImage
->
ExceedsLegacyLimits
()
);
// save in old image format, fix up method starts
if
(
bFixup
)
// save in old image format, fix up method starts
fixUpMethodStart
(
true
);
...
...
basic/source/inc/image.hxx
Dosyayı görüntüle @
dfe544c8
...
...
@@ -58,16 +58,16 @@ public:
String
aName
;
// macro name
::
rtl
::
OUString
aOUSource
;
// source code
String
aComment
;
sal_B
ool
bInit
;
sal_B
ool
bFirstInit
;
b
ool
bInit
;
b
ool
bFirstInit
;
SbiImage
();
~
SbiImage
();
void
Clear
();
sal_B
ool
Load
(
SvStream
&
,
sal_uInt32
&
nVer
);
b
ool
Load
(
SvStream
&
,
sal_uInt32
&
nVer
);
// nVer is set to version
// of image
sal_B
ool
Save
(
SvStream
&
,
sal_uInt32
=
B_CURVERSION
);
b
ool
Save
(
SvStream
&
,
sal_uInt32
=
B_CURVERSION
);
bool
IsError
()
{
return
bError
;
}
const
char
*
GetCode
()
const
{
return
pCode
;
}
...
...
@@ -84,7 +84,7 @@ public:
sal_uInt16
CalcLegacyOffset
(
sal_Int32
nOffset
);
sal_uInt32
CalcNewOffset
(
sal_Int16
nOffset
);
void
ReleaseLegacyBuffer
();
sal_B
ool
ExceedsLegacyLimits
();
b
ool
ExceedsLegacyLimits
();
};
...
...
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