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
4954e2a2
Kaydet (Commit)
4954e2a2
authored
Eki 28, 2013
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
simplify code and fix out of bounds read
Change-Id: I5be3a28d3d1ae43974f844d143a30bfd989cbe5b
üst
34012133
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
xspreadsheets2.cxx
test/source/sheet/xspreadsheets2.cxx
+3
-3
No files found.
test/source/sheet/xspreadsheets2.cxx
Dosyayı görüntüle @
4954e2a2
...
...
@@ -326,10 +326,10 @@ void XSpreadsheets2::importSheetToCopy()
bool
XSpreadsheets2
::
isExternalReference
(
const
OUString
&
aDestContent
,
const
OUString
&
aSrcContent
)
{
OUString
aStart
(
"'file://"
);
const
sal_Char
*
sSrcContent
=
OUStringToOString
(
aSrcContent
,
RTL_TEXTENCODING_UTF8
).
getStr
();
return
(
aDestContent
.
endsWithIgnoreAsciiCaseAsciiL
(
sSrcContent
,
aSrcContent
.
getLength
())
// same cell address
&&
aDestContent
.
indexOf
(
aStart
)
==
0
// starts with 'file://
CPPUNIT_ASSERT
(
aDestContent
.
startsWith
(
aStart
));
return
(
aDestContent
.
endsWithIgnoreAsciiCase
(
aSrcContent
,
NULL
)
// same cell address
&&
aDestContent
.
indexOf
(
aSrcFileName
)
>
0
);
// contains source file name
}
...
...
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