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
e0d16475
Kaydet (Commit)
e0d16475
authored
Nis 17, 2017
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Reduce scope and simplify by early return
Change-Id: I12f8c6cb002cb0af63a096c7b66dd1e7d2db92a5
üst
ee82052a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
17 deletions
+9
-17
doctempl.cxx
sfx2/source/doc/doctempl.cxx
+9
-17
No files found.
sfx2/source/doc/doctempl.cxx
Dosyayı görüntüle @
e0d16475
...
...
@@ -1136,37 +1136,29 @@ bool SfxDocumentTemplates::GetLogicNames
aFullPath
.
SetURL
(
rPath
);
const
OUString
aPath
(
aFullPath
.
GetMainURL
(
INetURLObject
::
DecodeMechanism
::
NONE
)
);
RegionData_Impl
*
pData
=
nullptr
;
DocTempl_EntryData_Impl
*
pEntry
=
nullptr
;
bool
bFound
=
false
;
const
sal_uInt16
nCount
=
GetRegionCount
();
for
(
sal_uInt16
i
=
0
;
!
bFound
&&
(
i
<
nCount
);
i
++
)
for
(
sal_uInt16
i
=
0
;
i
<
nCount
;
++
i
)
{
pData
=
pImp
->
GetRegion
(
i
);
RegionData_Impl
*
pData
=
pImp
->
GetRegion
(
i
);
if
(
pData
)
{
sal_uInt16
nChildCount
=
pData
->
GetCount
();
const
sal_uInt16
nChildCount
=
pData
->
GetCount
();
for
(
sal_uInt16
j
=
0
;
!
bFound
&&
(
j
<
nChildCount
);
j
++
)
for
(
sal_uInt16
j
=
0
;
j
<
nChildCount
;
++
j
)
{
pEntry
=
pData
->
GetEntry
(
j
);
DocTempl_EntryData_Impl
*
pEntry
=
pData
->
GetEntry
(
j
);
if
(
pEntry
&&
pEntry
->
GetTargetURL
()
==
aPath
)
{
bFound
=
true
;
rRegion
=
pData
->
GetTitle
();
rName
=
pEntry
->
GetTitle
();
return
true
;
}
}
}
}
if
(
bFound
)
{
rRegion
=
pData
->
GetTitle
();
rName
=
pEntry
->
GetTitle
();
}
return
bFound
;
return
false
;
}
...
...
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