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
15037b01
Kaydet (Commit)
15037b01
authored
Eki 23, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#705781 Resource leak
Change-Id: Ia802df9c36b59a0130931436be7f5dbea07c0c8c
üst
2bb0bd5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
PageMasterImportContext.cxx
xmloff/source/style/PageMasterImportContext.cxx
+4
-8
No files found.
xmloff/source/style/PageMasterImportContext.cxx
Dosyayı görüntüle @
15037b01
...
@@ -78,8 +78,6 @@ SvXMLImportContext *PageStyleContext::CreateChildContext(
...
@@ -78,8 +78,6 @@ SvXMLImportContext *PageStyleContext::CreateChildContext(
const
OUString
&
rLocalName
,
const
OUString
&
rLocalName
,
const
uno
::
Reference
<
xml
::
sax
::
XAttributeList
>
&
xAttrList
)
const
uno
::
Reference
<
xml
::
sax
::
XAttributeList
>
&
xAttrList
)
{
{
SvXMLImportContext
*
pContext
=
NULL
;
if
(
XML_NAMESPACE_STYLE
==
nPrefix
&&
if
(
XML_NAMESPACE_STYLE
==
nPrefix
&&
((
IsXMLToken
(
rLocalName
,
XML_HEADER_STYLE
))
||
((
IsXMLToken
(
rLocalName
,
XML_HEADER_STYLE
))
||
(
IsXMLToken
(
rLocalName
,
XML_FOOTER_STYLE
))
)
)
(
IsXMLToken
(
rLocalName
,
XML_FOOTER_STYLE
))
)
)
...
@@ -119,10 +117,11 @@ SvXMLImportContext *PageStyleContext::CreateChildContext(
...
@@ -119,10 +117,11 @@ SvXMLImportContext *PageStyleContext::CreateChildContext(
}
}
if
(
!
bEnd
)
if
(
!
bEnd
)
nEndIndex
=
nIndex
;
nEndIndex
=
nIndex
;
pContext
=
new
PageHeaderFooterContext
(
GetImport
(),
nPrefix
,
rLocalName
,
return
new
PageHeaderFooterContext
(
GetImport
(),
nPrefix
,
rLocalName
,
xAttrList
,
GetProperties
(),
xImpPrMap
,
nStartIndex
,
nEndIndex
,
bHeader
);
xAttrList
,
GetProperties
(),
xImpPrMap
,
nStartIndex
,
nEndIndex
,
bHeader
);
}
}
}
}
if
(
XML_NAMESPACE_STYLE
==
nPrefix
&&
if
(
XML_NAMESPACE_STYLE
==
nPrefix
&&
IsXMLToken
(
rLocalName
,
XML_PAGE_LAYOUT_PROPERTIES
)
)
IsXMLToken
(
rLocalName
,
XML_PAGE_LAYOUT_PROPERTIES
)
)
{
{
...
@@ -148,7 +147,7 @@ SvXMLImportContext *PageStyleContext::CreateChildContext(
...
@@ -148,7 +147,7 @@ SvXMLImportContext *PageStyleContext::CreateChildContext(
if
(
!
bEnd
)
if
(
!
bEnd
)
nEndIndex
=
nIndex
;
nEndIndex
=
nIndex
;
PageContextType
aType
=
Page
;
PageContextType
aType
=
Page
;
pContext
=
new
PagePropertySetContext
(
GetImport
(),
nPrefix
,
return
new
PagePropertySetContext
(
GetImport
(),
nPrefix
,
rLocalName
,
xAttrList
,
rLocalName
,
xAttrList
,
XML_TYPE_PROP_PAGE_LAYOUT
,
XML_TYPE_PROP_PAGE_LAYOUT
,
GetProperties
(),
GetProperties
(),
...
@@ -156,10 +155,7 @@ SvXMLImportContext *PageStyleContext::CreateChildContext(
...
@@ -156,10 +155,7 @@ SvXMLImportContext *PageStyleContext::CreateChildContext(
}
}
}
}
if
(
!
pContext
)
return
XMLPropStyleContext
::
CreateChildContext
(
nPrefix
,
rLocalName
,
xAttrList
);
pContext
=
XMLPropStyleContext
::
CreateChildContext
(
nPrefix
,
rLocalName
,
xAttrList
);
return
pContext
;
}
}
void
PageStyleContext
::
FillPropertySet
(
const
uno
::
Reference
<
beans
::
XPropertySet
>
&
rPropSet
)
void
PageStyleContext
::
FillPropertySet
(
const
uno
::
Reference
<
beans
::
XPropertySet
>
&
rPropSet
)
...
...
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