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
70c1cf03
Kaydet (Commit)
70c1cf03
authored
Eyl 12, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1323912 Improper use of negative value
Change-Id: I7c403ccb40bfddee2e30ba10e755187490857596
üst
67f5012d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
vbaexport.cxx
oox/source/ole/vbaexport.cxx
+4
-3
No files found.
oox/source/ole/vbaexport.cxx
Dosyayı görüntüle @
70c1cf03
...
...
@@ -630,9 +630,10 @@ void exportModuleStream(SvStream& rStrm, const OUString& rSourceCode, const OUSt
exportString
(
aModuleStream
,
"Attribute VB_Name =
\"
"
+
aElementName
+
"
\"\r\n
"
);
OUString
aSourceCode
=
rSourceCode
.
replaceFirst
(
"Option VBASupport 1
\n
"
,
""
);
sal_Int32
nPos
=
aSourceCode
.
indexOf
(
"Rem Attribute VBA_ModuleType="
);
sal_Int32
nEndPos
=
aSourceCode
.
indexOf
(
"
\n
"
,
nPos
);
aSourceCode
=
aSourceCode
.
replaceAt
(
nPos
,
nEndPos
-
nPos
+
1
,
""
);
const
sal_Int32
nPos
=
aSourceCode
.
indexOf
(
"Rem Attribute VBA_ModuleType="
);
const
sal_Int32
nEndPos
=
nPos
!=
-
1
?
aSourceCode
.
indexOf
(
"
\n
"
,
nPos
)
:
-
1
;
if
(
nPos
!=
-
1
&&
nEndPos
!=
-
1
)
aSourceCode
=
aSourceCode
.
replaceAt
(
nPos
,
nEndPos
-
nPos
+
1
,
""
);
aSourceCode
=
aSourceCode
.
replaceAll
(
"
\n
"
,
"
\r\n
"
);
exportString
(
aModuleStream
,
aSourceCode
);
aModuleStream
.
Seek
(
0
);
...
...
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