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
209a8d4a
Kaydet (Commit)
209a8d4a
authored
Nis 25, 2018
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid OUString temporaries and bail out early
Change-Id: Ic4c1b2ce68ba992744bd68dece0afc417c22e5cd
üst
4f03fabc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
17 deletions
+11
-17
unoidx.cxx
sw/source/core/unocore/unoidx.cxx
+11
-17
No files found.
sw/source/core/unocore/unoidx.cxx
Dosyayı görüntüle @
209a8d4a
...
...
@@ -1422,21 +1422,18 @@ OUString SAL_CALL SwXDocumentIndex::getName()
{
SolarMutexGuard
g
;
OUString
uRet
;
SwSectionFormat
*
const
pSectionFormat
(
m_pImpl
->
GetSectionFormat
()
);
if
(
m_pImpl
->
m_bIsDescriptor
)
{
uRet
=
m_pImpl
->
m_pProps
->
GetTOXBase
().
GetTOXName
();
return
m_pImpl
->
m_pProps
->
GetTOXBase
().
GetTOXName
();
}
else
if
(
pSectionFormat
)
{
uRet
=
pSectionFormat
->
GetSection
()
->
GetSectionName
();
}
else
if
(
!
pSectionFormat
)
{
throw
uno
::
RuntimeException
();
}
return
uRet
;
return
pSectionFormat
->
GetSection
()
->
GetSectionName
();
}
void
SAL_CALL
...
...
@@ -1727,21 +1724,18 @@ SwXDocumentIndexMark::getMarkEntry()
{
SolarMutexGuard
aGuard
;
OUString
sRet
;
SwTOXType
*
const
pType
=
m_pImpl
->
GetTOXType
();
if
(
pType
&&
m_pImpl
->
m_pTOXMark
)
{
sRet
=
m_pImpl
->
m_pTOXMark
->
GetAlternativeText
();
}
else
if
(
m_pImpl
->
m_bIsDescriptor
)
{
sRet
=
m_pImpl
->
m_sAltText
;
return
m_pImpl
->
m_pTOXMark
->
GetAlternativeText
();
}
else
if
(
!
m_pImpl
->
m_bIsDescriptor
)
{
throw
uno
::
RuntimeException
();
}
return
sRet
;
return
m_pImpl
->
m_sAltText
;
}
void
SAL_CALL
...
...
@@ -1932,7 +1926,7 @@ void SwXDocumentIndexMark::Impl::InsertTOXMark(
// thus use a space - is this really the ideal solution?
if
(
!
bMark
&&
rMark
.
GetAlternativeText
().
isEmpty
())
{
rMark
.
SetAlternativeText
(
OUString
(
' '
)
);
rMark
.
SetAlternativeText
(
" "
);
}
const
bool
bForceExpandHints
(
!
bMark
&&
pTextCursor
&&
pTextCursor
->
IsAtEndOfMeta
()
);
...
...
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