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
d9bb7014
Kaydet (Commit)
d9bb7014
authored
Eki 14, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1326568 Unused value
Change-Id: Idf1efef484d3a89bd56ba9a6807d4191ef95cb41
üst
6946b688
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
ParcelDescriptor.java
...sun/star/script/framework/container/ParcelDescriptor.java
+3
-12
No files found.
scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java
Dosyayı görüntüle @
d9bb7014
...
@@ -151,18 +151,10 @@ public class ParcelDescriptor {
...
@@ -151,18 +151,10 @@ public class ParcelDescriptor {
String
language
,
languagename
,
description
=
""
;
String
language
,
languagename
,
description
=
""
;
Map
<
String
,
String
>
langProps
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
langProps
=
new
HashMap
<
String
,
String
>();
NodeList
nl
;
NodeList
nl
;
Element
tmp
;
Element
scriptElement
=
(
Element
)
scriptNodes
.
item
(
i
);
Element
scriptElement
=
(
Element
)
scriptNodes
.
item
(
i
);
language
=
scriptElement
.
getAttribute
(
"language"
);
language
=
scriptElement
.
getAttribute
(
"language"
);
nl
=
scriptElement
.
getElementsByTagName
(
"logicalname"
);
if
(
nl
!=
null
)
{
tmp
=
(
Element
)
nl
.
item
(
0
);
}
// get the text of the description element
// get the text of the description element
nl
=
scriptElement
.
getElementsByTagName
(
"locale"
);
nl
=
scriptElement
.
getElementsByTagName
(
"locale"
);
...
@@ -185,7 +177,7 @@ public class ParcelDescriptor {
...
@@ -185,7 +177,7 @@ public class ParcelDescriptor {
if
(
nl
==
null
)
{
if
(
nl
==
null
)
{
languagename
=
""
;
languagename
=
""
;
}
else
{
}
else
{
tmp
=
(
Element
)
nl
.
item
(
0
);
Element
tmp
=
(
Element
)
nl
.
item
(
0
);
languagename
=
tmp
.
getAttribute
(
"value"
);
languagename
=
tmp
.
getAttribute
(
"value"
);
}
}
...
@@ -197,7 +189,7 @@ public class ParcelDescriptor {
...
@@ -197,7 +189,7 @@ public class ParcelDescriptor {
if
(
props
!=
null
)
{
if
(
props
!=
null
)
{
for
(
int
j
=
0
;
j
<
props
.
getLength
();
j
++)
{
for
(
int
j
=
0
;
j
<
props
.
getLength
();
j
++)
{
tmp
=
(
Element
)
props
.
item
(
j
);
Element
tmp
=
(
Element
)
props
.
item
(
j
);
String
key
=
tmp
.
getAttribute
(
"name"
);
String
key
=
tmp
.
getAttribute
(
"name"
);
String
val
=
tmp
.
getAttribute
(
"value"
);
String
val
=
tmp
.
getAttribute
(
"value"
);
langProps
.
put
(
key
,
val
);
langProps
.
put
(
key
,
val
);
...
@@ -364,4 +356,4 @@ public class ParcelDescriptor {
...
@@ -364,4 +356,4 @@ public class ParcelDescriptor {
//add to the Top Element
//add to the Top Element
main
.
appendChild
(
root
);
main
.
appendChild
(
root
);
}
}
}
}
\ No newline at end of file
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