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
addd8847
Kaydet (Commit)
addd8847
authored
Kas 12, 2015
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lok: Use reference instead of copy constructing in range-based for.
Change-Id: Ie5bf5d4ab139f22e67f3654b0bb31e10b8c9f337
üst
99cc76e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
init.cxx
desktop/source/lib/init.cxx
+5
-5
No files found.
desktop/source/lib/init.cxx
Dosyayı görüntüle @
addd8847
...
@@ -1281,10 +1281,10 @@ static char* getStyles(LibreOfficeKitDocument* pThis, const char* pCommand)
...
@@ -1281,10 +1281,10 @@ static char* getStyles(LibreOfficeKitDocument* pThis, const char* pCommand)
if
(
sStyleFam
==
"ParagraphStyles"
if
(
sStyleFam
==
"ParagraphStyles"
&&
doc_getDocumentType
(
pThis
)
==
LOK_DOCTYPE_TEXT
)
&&
doc_getDocumentType
(
pThis
)
==
LOK_DOCTYPE_TEXT
)
{
{
for
(
OUString
aStyle
:
aWriterStyles
)
for
(
const
OUString
&
rStyle
:
aWriterStyles
)
{
{
uno
::
Reference
<
beans
::
XPropertySet
>
xStyle
;
uno
::
Reference
<
beans
::
XPropertySet
>
xStyle
;
xStyleFamily
->
getByName
(
aStyle
)
>>=
xStyle
;
xStyleFamily
->
getByName
(
rStyle
)
>>=
xStyle
;
OUString
sName
;
OUString
sName
;
xStyle
->
getPropertyValue
(
"DisplayName"
)
>>=
sName
;
xStyle
->
getPropertyValue
(
"DisplayName"
)
>>=
sName
;
if
(
!
sName
.
isEmpty
()
)
if
(
!
sName
.
isEmpty
()
)
...
@@ -1299,14 +1299,14 @@ static char* getStyles(LibreOfficeKitDocument* pThis, const char* pCommand)
...
@@ -1299,14 +1299,14 @@ static char* getStyles(LibreOfficeKitDocument* pThis, const char* pCommand)
}
}
uno
::
Sequence
<
OUString
>
aStyles
=
xStyleFamily
->
getElementNames
();
uno
::
Sequence
<
OUString
>
aStyles
=
xStyleFamily
->
getElementNames
();
for
(
OUString
a
Style
:
aStyles
)
for
(
const
OUString
&
r
Style
:
aStyles
)
{
{
// Filter out the default styles - they are already at the top
// Filter out the default styles - they are already at the top
// of the list
// of the list
if
(
aDefaultStyleNames
.
find
(
a
Style
)
==
aDefaultStyleNames
.
end
())
if
(
aDefaultStyleNames
.
find
(
r
Style
)
==
aDefaultStyleNames
.
end
())
{
{
boost
::
property_tree
::
ptree
aChild
;
boost
::
property_tree
::
ptree
aChild
;
aChild
.
put
(
""
,
a
Style
);
aChild
.
put
(
""
,
r
Style
);
aChildren
.
push_back
(
std
::
make_pair
(
""
,
aChild
));
aChildren
.
push_back
(
std
::
make_pair
(
""
,
aChild
));
}
}
}
}
...
...
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