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
7d042c50
Kaydet (Commit)
7d042c50
authored
Haz 12, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use rtl_ustr_getLength instead of a temporary string just to find length
Change-Id: Ibbf777e57af6b98611cb5dce5a31517de80305b7
üst
df4c929b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
scanner.cxx
basic/source/comp/scanner.cxx
+2
-3
textdoc.cxx
svtools/source/edit/textdoc.cxx
+1
-1
No files found.
basic/source/comp/scanner.cxx
Dosyayı görüntüle @
7d042c50
...
@@ -433,8 +433,7 @@ bool SbiScanner::NextSym()
...
@@ -433,8 +433,7 @@ bool SbiScanner::NextSym()
// from 4.1.1996: buffer full, go on scanning empty
// from 4.1.1996: buffer full, go on scanning empty
if
(
(
p
-
buf
)
==
(
BUF_SIZE
-
1
)
)
if
(
(
p
-
buf
)
==
(
BUF_SIZE
-
1
)
)
bBufOverflow
=
true
;
bBufOverflow
=
true
;
else
if
(
String
(
cmp
).
Search
(
ch
)
!=
STRING_NOTFOUND
)
else
if
(
rtl
::
OUString
(
cmp
).
indexOf
(
ch
)
!=
-
1
)
//else if( strchr( cmp, ch ) )
*
p
++
=
ch
;
*
p
++
=
ch
;
else
else
{
{
...
@@ -522,7 +521,7 @@ PrevLineCommentLbl:
...
@@ -522,7 +521,7 @@ PrevLineCommentLbl:
{
{
bPrevLineExtentsComment
=
false
;
bPrevLineExtentsComment
=
false
;
aSym
=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"REM"
));
aSym
=
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"REM"
));
sal_Int32
nLen
=
String
(
pLine
).
Len
(
);
sal_Int32
nLen
=
rtl_ustr_getLength
(
pLine
);
if
(
bCompatible
&&
pLine
[
nLen
-
1
]
==
'_'
&&
pLine
[
nLen
-
2
]
==
' '
)
if
(
bCompatible
&&
pLine
[
nLen
-
1
]
==
'_'
&&
pLine
[
nLen
-
2
]
==
' '
)
bPrevLineExtentsComment
=
true
;
bPrevLineExtentsComment
=
true
;
nCol2
=
nCol2
+
nLen
;
nCol2
=
nCol2
+
nLen
;
...
...
svtools/source/edit/textdoc.cxx
Dosyayı görüntüle @
7d042c50
...
@@ -553,7 +553,7 @@ sal_uLong TextDoc::GetTextLen( const xub_Unicode* pSep, const TextSelection* pSe
...
@@ -553,7 +553,7 @@ sal_uLong TextDoc::GetTextLen( const xub_Unicode* pSep, const TextSelection* pSe
}
}
if
(
pSep
)
if
(
pSep
)
nLen
+=
(
nEndNode
-
nStartNode
)
*
String
(
pSep
).
Len
(
);
nLen
+=
(
nEndNode
-
nStartNode
)
*
rtl_ustr_getLength
(
pSep
);
}
}
return
nLen
;
return
nLen
;
...
...
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