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
2d2e1267
Kaydet (Commit)
2d2e1267
authored
Kas 13, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
xub_StrLen->sal_Int32
Change-Id: Ia17762919b57bc6febed5cc49e8931165870c117
üst
8577006e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
scriptedtext.cxx
svtools/source/control/scriptedtext.cxx
+6
-6
parhtml.cxx
svtools/source/svhtml/parhtml.cxx
+7
-7
No files found.
svtools/source/control/scriptedtext.cxx
Dosyayı görüntüle @
2d2e1267
...
@@ -145,8 +145,8 @@ void SvtScriptedTextHelper_Impl::CalculateSizes()
...
@@ -145,8 +145,8 @@ void SvtScriptedTextHelper_Impl::CalculateSizes()
DBG_ASSERT
(
maPosVec
.
size
()
-
1
==
maScriptVec
.
size
(),
DBG_ASSERT
(
maPosVec
.
size
()
-
1
==
maScriptVec
.
size
(),
"SvtScriptedTextHelper_Impl::CalculateWidth - invalid vectors"
);
"SvtScriptedTextHelper_Impl::CalculateWidth - invalid vectors"
);
xub_StrLen
nThisPos
=
static_cast
<
xub_StrLen
>
(
maPosVec
[
0
]
)
;
sal_Int32
nThisPos
=
maPosVec
[
0
]
;
xub_StrLen
nNextPos
;
sal_Int32
nNextPos
;
sal_Int32
nPosVecSize
=
maPosVec
.
size
();
sal_Int32
nPosVecSize
=
maPosVec
.
size
();
sal_Int32
nPosVecIndex
=
1
;
sal_Int32
nPosVecIndex
=
1
;
...
@@ -157,7 +157,7 @@ void SvtScriptedTextHelper_Impl::CalculateSizes()
...
@@ -157,7 +157,7 @@ void SvtScriptedTextHelper_Impl::CalculateSizes()
while
(
nPosVecIndex
<
nPosVecSize
)
while
(
nPosVecIndex
<
nPosVecSize
)
{
{
nNextPos
=
static_cast
<
xub_StrLen
>
(
maPosVec
[
nPosVecIndex
++
]
)
;
nNextPos
=
maPosVec
[
nPosVecIndex
++
]
;
nScript
=
maScriptVec
[
nScriptVecIndex
++
];
nScript
=
maScriptVec
[
nScriptVecIndex
++
];
SetOutDevFont
(
nScript
);
SetOutDevFont
(
nScript
);
...
@@ -284,8 +284,8 @@ void SvtScriptedTextHelper_Impl::DrawText( const Point& _rPos )
...
@@ -284,8 +284,8 @@ void SvtScriptedTextHelper_Impl::DrawText( const Point& _rPos )
maDefltFont
=
mrOutDevice
.
GetFont
();
maDefltFont
=
mrOutDevice
.
GetFont
();
Point
aCurrPos
(
_rPos
);
Point
aCurrPos
(
_rPos
);
xub_StrLen
nThisPos
=
static_cast
<
xub_StrLen
>
(
maPosVec
[
0
]
)
;
sal_Int32
nThisPos
=
maPosVec
[
0
]
;
xub_StrLen
nNextPos
;
sal_Int32
nNextPos
;
sal_Int32
nPosVecSize
=
maPosVec
.
size
();
sal_Int32
nPosVecSize
=
maPosVec
.
size
();
sal_Int32
nPosVecIndex
=
1
;
sal_Int32
nPosVecIndex
=
1
;
...
@@ -294,7 +294,7 @@ void SvtScriptedTextHelper_Impl::DrawText( const Point& _rPos )
...
@@ -294,7 +294,7 @@ void SvtScriptedTextHelper_Impl::DrawText( const Point& _rPos )
while
(
nPosVecIndex
<
nPosVecSize
)
while
(
nPosVecIndex
<
nPosVecSize
)
{
{
nNextPos
=
static_cast
<
xub_StrLen
>
(
maPosVec
[
nPosVecIndex
++
]
)
;
nNextPos
=
maPosVec
[
nPosVecIndex
++
]
;
nScript
=
maScriptVec
[
nVecIndex
];
nScript
=
maScriptVec
[
nVecIndex
];
SetOutDevFont
(
nScript
);
SetOutDevFont
(
nScript
);
...
...
svtools/source/svhtml/parhtml.cxx
Dosyayı görüntüle @
2d2e1267
...
@@ -239,8 +239,8 @@ void HTMLOption::GetColor( Color& rColor ) const
...
@@ -239,8 +239,8 @@ void HTMLOption::GetColor( Color& rColor ) const
if
(
SAL_MAX_UINT32
==
nColor
)
if
(
SAL_MAX_UINT32
==
nColor
)
{
{
nColor
=
0
;
nColor
=
0
;
xub_StrLen
nPos
=
0
;
sal_Int32
nPos
=
0
;
for
(
sal_uInt32
i
=
0
;
i
<
6
;
i
++
)
for
(
sal_uInt32
i
=
0
;
i
<
6
;
++
i
)
{
{
// Whatever Netscape does to get color values,
// Whatever Netscape does to get color values,
// at maximum three characters < '0' are ignored.
// at maximum three characters < '0' are ignored.
...
@@ -1162,7 +1162,7 @@ int HTMLParser::_GetNextToken()
...
@@ -1162,7 +1162,7 @@ int HTMLParser::_GetNextToken()
sal_uLong
nCStreamPos
=
0
;
sal_uLong
nCStreamPos
=
0
;
sal_uLong
nCLineNr
=
0
;
sal_uLong
nCLineNr
=
0
;
sal_uLong
nCLinePos
=
0
;
sal_uLong
nCLinePos
=
0
;
xub_StrLen
nCStrLen
=
0
;
sal_Int32
nCStrLen
=
0
;
bool
bDone
=
false
;
bool
bDone
=
false
;
// Read until closing -->. If not found restart at first >
// Read until closing -->. If not found restart at first >
...
@@ -1421,7 +1421,7 @@ scan_text:
...
@@ -1421,7 +1421,7 @@ scan_text:
void
HTMLParser
::
UnescapeToken
()
void
HTMLParser
::
UnescapeToken
()
{
{
xub_StrLen
nPos
=
0
;
sal_Int32
nPos
=
0
;
bool
bEscape
=
false
;
bool
bEscape
=
false
;
while
(
nPos
<
aToken
.
getLength
()
)
while
(
nPos
<
aToken
.
getLength
()
)
...
@@ -1447,7 +1447,7 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken )
...
@@ -1447,7 +1447,7 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken )
if
(
!
maOptions
.
empty
())
if
(
!
maOptions
.
empty
())
return
maOptions
;
return
maOptions
;
xub_StrLen
nPos
=
0
;
sal_Int32
nPos
=
0
;
while
(
nPos
<
aToken
.
getLength
()
)
while
(
nPos
<
aToken
.
getLength
()
)
{
{
// A letter? Option beginning here.
// A letter? Option beginning here.
...
@@ -1455,7 +1455,7 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken )
...
@@ -1455,7 +1455,7 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken )
{
{
int
nToken
;
int
nToken
;
OUString
aValue
;
OUString
aValue
;
xub_StrLen
nStt
=
nPos
;
sal_Int32
nStt
=
nPos
;
sal_Unicode
cChar
=
0
;
sal_Unicode
cChar
=
0
;
// Actually only certain characters allowed.
// Actually only certain characters allowed.
...
@@ -1492,7 +1492,7 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken )
...
@@ -1492,7 +1492,7 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken )
if
(
nPos
!=
aToken
.
getLength
()
)
if
(
nPos
!=
aToken
.
getLength
()
)
{
{
xub_StrLen
nLen
=
0
;
sal_Int32
nLen
=
0
;
nStt
=
nPos
;
nStt
=
nPos
;
if
(
(
'"'
==
cChar
)
||
(
'\''
)
==
cChar
)
if
(
(
'"'
==
cChar
)
||
(
'\''
)
==
cChar
)
{
{
...
...
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