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
97da76a1
Kaydet (Commit)
97da76a1
authored
Eki 14, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cid#1326131 'Constant' variable guards dead code
Change-Id: I832b2fc243404a6ae9796ad994e901880d3b9260
üst
b4da5037
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
Desktop.java
wizards/com/sun/star/wizards/common/Desktop.java
+6
-12
No files found.
wizards/com/sun/star/wizards/common/Desktop.java
Dosyayı görüntüle @
97da76a1
...
...
@@ -234,24 +234,19 @@ public class Desktop
}
/**
* Checks if the passed Element Name already exists in the list If yes it appends a
* suffix to make it unique
* Checks if the passed Element Name already exists in the list
.
If yes it appends a
* suffix to make it unique
.
* @return a unique Name not being in the passed list.
*/
public
static
String
getUniqueName
(
String
[]
_slist
,
String
_sElementName
,
String
_sSuffixSeparator
)
{
int
a
=
2
;
String
scompname
=
_sElementName
;
boolean
bElementexists
=
true
;
if
(
_slist
==
null
)
if
(
_slist
==
null
||
_slist
.
length
==
0
)
{
return
_sElementName
;
}
if
(
_slist
.
length
==
0
)
{
return
_sElementName
;
}
while
(
bElementexists
)
String
scompname
=
_sElementName
;
int
a
=
2
;
while
(
true
)
{
for
(
int
i
=
0
;
i
<
_slist
.
length
;
i
++)
{
...
...
@@ -262,7 +257,6 @@ public class Desktop
}
scompname
=
_sElementName
+
_sSuffixSeparator
+
a
++;
}
return
PropertyNames
.
EMPTY_STRING
;
}
...
...
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