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
83d8ccfb
Kaydet (Commit)
83d8ccfb
authored
May 06, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
xmloff: convert to assert in SvXMLMetaExport
Change-Id: Ib959da6f4dab0b290955e8b786d6efeef7f307b0
üst
068f16e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
xmlmetae.cxx
xmloff/source/meta/xmlmetae.cxx
+6
-6
No files found.
xmloff/source/meta/xmlmetae.cxx
Dosyayı görüntüle @
83d8ccfb
...
@@ -286,7 +286,7 @@ void SvXMLMetaExport::_MExport()
...
@@ -286,7 +286,7 @@ void SvXMLMetaExport::_MExport()
XML_NAMESPACE_META
,
XML_CELL_COUNT
,
aValue
);
XML_NAMESPACE_META
,
XML_CELL_COUNT
,
aValue
);
else
else
{
{
DBG_ASSERT
(
false
,
"Unknown statistic value!
\n
"
);
SAL_WARN
(
"xmloff"
,
"Unknown statistic value!"
);
}
}
}
}
}
}
...
@@ -308,7 +308,7 @@ SvXMLMetaExport::SvXMLMetaExport(
...
@@ -308,7 +308,7 @@ SvXMLMetaExport::SvXMLMetaExport(
m_level
(
0
),
m_level
(
0
),
m_preservedNSs
()
m_preservedNSs
()
{
{
DBG_ASSERT
(
mxDocProps
.
is
(),
"no document properties"
);
assert
(
mxDocProps
.
is
()
);
}
}
SvXMLMetaExport
::~
SvXMLMetaExport
()
SvXMLMetaExport
::~
SvXMLMetaExport
()
...
@@ -331,7 +331,7 @@ void SvXMLMetaExport::Export()
...
@@ -331,7 +331,7 @@ void SvXMLMetaExport::Export()
}
else
if
(
attrname
.
equalsAsciiL
(
s_xmlns
,
strlen
(
s_xmlns
)))
{
}
else
if
(
attrname
.
equalsAsciiL
(
s_xmlns
,
strlen
(
s_xmlns
)))
{
// default initialized empty string
// default initialized empty string
}
else
{
}
else
{
OSL_FAIL
(
"namespace attribute not starting with xmlns unexpected"
);
assert
(
!
"namespace attribute not starting with xmlns unexpected"
);
}
}
ns
.
Second
=
rNsMap
.
GetNameByKey
(
key
);
ns
.
Second
=
rNsMap
.
GetNameByKey
(
key
);
namespaces
.
push_back
(
ns
);
namespaces
.
push_back
(
ns
);
...
@@ -352,7 +352,7 @@ SvXMLMetaExport::startDocument()
...
@@ -352,7 +352,7 @@ SvXMLMetaExport::startDocument()
throw
(
uno
::
RuntimeException
,
xml
::
sax
::
SAXException
,
std
::
exception
)
throw
(
uno
::
RuntimeException
,
xml
::
sax
::
SAXException
,
std
::
exception
)
{
{
// ignore: has already been done by SvXMLExport::exportDoc
// ignore: has already been done by SvXMLExport::exportDoc
DBG_ASSERT
(
m_level
==
0
,
"SvXMLMetaExport: level error"
);
assert
(
m_level
==
0
&&
"SvXMLMetaExport: level error"
);
}
}
void
SAL_CALL
void
SAL_CALL
...
@@ -360,7 +360,7 @@ SvXMLMetaExport::endDocument()
...
@@ -360,7 +360,7 @@ SvXMLMetaExport::endDocument()
throw
(
uno
::
RuntimeException
,
xml
::
sax
::
SAXException
,
std
::
exception
)
throw
(
uno
::
RuntimeException
,
xml
::
sax
::
SAXException
,
std
::
exception
)
{
{
// ignore: will be done by SvXMLExport::exportDoc
// ignore: will be done by SvXMLExport::exportDoc
DBG_ASSERT
(
m_level
==
0
,
"SvXMLMetaExport: level error"
);
assert
(
m_level
==
0
&&
"SvXMLMetaExport: level error"
);
}
}
// unfortunately, this method contains far too much ugly namespace mangling.
// unfortunately, this method contains far too much ugly namespace mangling.
...
@@ -456,7 +456,7 @@ SvXMLMetaExport::endElement(const OUString & i_rName)
...
@@ -456,7 +456,7 @@ SvXMLMetaExport::endElement(const OUString & i_rName)
// ignore the root; see startElement
// ignore the root; see startElement
return
;
return
;
}
}
DBG_ASSERT
(
m_level
>=
0
,
"SvXMLMetaExport: level error"
);
assert
(
m_level
>=
0
&&
"SvXMLMetaExport: level error"
);
mrExport
.
EndElement
(
i_rName
,
false
);
mrExport
.
EndElement
(
i_rName
,
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