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
9cf1ea36
Kaydet (Commit)
9cf1ea36
authored
May 07, 2017
tarafından
Chris Sherlock
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#43157: convert xmloff module away from OSL_ASSERT to assert
Change-Id: I7eb36a11a7de5f7cf35ce97b59c8b461b64385a7
üst
74fa31e1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
15 deletions
+15
-15
attr.cxx
unoxml/source/dom/attr.cxx
+3
-3
document.cxx
unoxml/source/dom/document.cxx
+3
-3
node.cxx
unoxml/source/dom/node.cxx
+2
-2
SchXMLChartContext.cxx
xmloff/source/chart/SchXMLChartContext.cxx
+3
-3
SchXMLExport.cxx
xmloff/source/chart/SchXMLExport.cxx
+1
-1
attrlist.cxx
xmloff/source/core/attrlist.cxx
+3
-3
No files found.
unoxml/source/dom/attr.cxx
Dosyayı görüntüle @
9cf1ea36
...
...
@@ -217,7 +217,7 @@ namespace DOM
if
(
!
m_aNodePtr
)
{
return
;
}
if
(
m_pNamespace
.
get
())
{
OSL_ASSERT
(
!
m_aNodePtr
->
parent
);
assert
(
!
m_aNodePtr
->
parent
);
m_pNamespace
->
second
=
OUStringToOString
(
prefix
,
RTL_TEXTENCODING_UTF8
);
}
else
{
...
...
@@ -232,7 +232,7 @@ namespace DOM
if
(
!
m_aNodePtr
)
{
return
OUString
();
}
if
(
m_pNamespace
.
get
())
{
OSL_ASSERT
(
!
m_aNodePtr
->
parent
);
assert
(
!
m_aNodePtr
->
parent
);
OUString
const
ret
(
OStringToOUString
(
m_pNamespace
->
second
,
RTL_TEXTENCODING_UTF8
));
return
ret
;
...
...
@@ -248,7 +248,7 @@ namespace DOM
if
(
!
m_aNodePtr
)
{
return
OUString
();
}
if
(
m_pNamespace
.
get
())
{
OSL_ASSERT
(
!
m_aNodePtr
->
parent
);
assert
(
!
m_aNodePtr
->
parent
);
OUString
const
ret
(
OStringToOUString
(
m_pNamespace
->
first
,
RTL_TEXTENCODING_UTF8
));
return
ret
;
...
...
unoxml/source/dom/document.cxx
Dosyayı görüntüle @
9cf1ea36
...
...
@@ -173,7 +173,7 @@ namespace DOM
if
(
xNode
.
is
())
{
::
rtl
::
Reference
<
CNode
>
ret
(
i
->
second
.
second
);
OSL_ASSERT
(
ret
.
is
());
assert
(
ret
.
is
());
return
ret
;
}
}
...
...
@@ -265,7 +265,7 @@ namespace DOM
::
std
::
make_pair
(
WeakReference
<
XNode
>
(
pCNode
.
get
()),
pCNode
.
get
()))
).
second
;
OSL_ASSERT
(
bInserted
);
assert
(
bInserted
);
if
(
!
bInserted
)
{
// if insertion failed, delete new instance and return null
return
nullptr
;
...
...
@@ -939,7 +939,7 @@ namespace DOM
{
::
osl
::
MutexGuard
const
g
(
m_rMutex
);
OSL_ASSERT
(
nullptr
!=
m_aNodePtr
);
assert
(
nullptr
!=
m_aNodePtr
);
if
(
nullptr
==
m_aNodePtr
)
{
return
nullptr
;
}
...
...
unoxml/source/dom/node.cxx
Dosyayı görüntüle @
9cf1ea36
...
...
@@ -141,7 +141,7 @@ namespace DOM
?
&
const_cast
<
CDocument
&>
(
rDocument
)
:
nullptr
)
,
m_rMutex
(
const_cast
<
::
osl
::
Mutex
&
>
(
rMutex
))
{
OSL_ASSERT
(
m_aNodePtr
);
assert
(
m_aNodePtr
);
}
void
CNode
::
invalidate
()
...
...
@@ -181,7 +181,7 @@ namespace DOM
CDocument
&
CNode
::
GetOwnerDocument
()
{
OSL_ASSERT
(
m_xDocument
.
is
());
assert
(
m_xDocument
.
is
());
return
*
m_xDocument
;
// needs overriding in CDocument!
}
...
...
xmloff/source/chart/SchXMLChartContext.cxx
Dosyayı görüntüle @
9cf1ea36
...
...
@@ -972,7 +972,7 @@ void SchXMLChartContext::EndElement()
void
SchXMLChartContext
::
MergeSeriesForStockChart
()
{
OSL_ASSERT
(
mbIsStockChart
);
assert
(
mbIsStockChart
);
try
{
uno
::
Reference
<
chart
::
XChartDocument
>
xOldDoc
(
mrImportHelper
.
GetChartDocument
());
...
...
@@ -1009,7 +1009,7 @@ void SchXMLChartContext::MergeSeriesForStockChart()
const
sal_Int32
nSeriesCount
(
aSeriesSeq
.
getLength
());
const
sal_Int32
nSeriesPerCandleStick
=
bHasJapaneseCandlestick
?
4
:
3
;
sal_Int32
nCandleStickCount
=
nSeriesCount
/
nSeriesPerCandleStick
;
OSL_ASSERT
(
nSeriesPerCandleStick
*
nCandleStickCount
==
nSeriesCount
);
assert
(
nSeriesPerCandleStick
*
nCandleStickCount
==
nSeriesCount
);
uno
::
Sequence
<
uno
::
Reference
<
chart2
::
XDataSeries
>
>
aNewSeries
(
nCandleStickCount
);
for
(
sal_Int32
i
=
0
;
i
<
nCandleStickCount
;
++
i
)
{
...
...
@@ -1120,7 +1120,7 @@ SvXMLImportContext* SchXMLChartContext::CreateChildContext(
{
if
(
!
msColTrans
.
isEmpty
()
)
{
OSL_ASSERT
(
msRowTrans
.
isEmpty
()
);
assert
(
msRowTrans
.
isEmpty
()
);
pTableContext
->
setColumnPermutation
(
lcl_getNumberSequenceFromString
(
msColTrans
,
true
));
msColTrans
.
clear
();
}
...
...
xmloff/source/chart/SchXMLExport.cxx
Dosyayı görüntüle @
9cf1ea36
...
...
@@ -2896,7 +2896,7 @@ void SchXMLExportHelper_Impl::exportRegressionCurve(
const
awt
::
Size
&
rPageSize
,
bool
bExportContent
)
{
OSL_ASSERT
(
mxExpPropMapper
.
is
());
assert
(
mxExpPropMapper
.
is
());
std
::
vector
<
XMLPropertyState
>
aPropertyStates
;
std
::
vector
<
XMLPropertyState
>
aEquationPropertyStates
;
...
...
xmloff/source/core/attrlist.cxx
Dosyayı görüntüle @
9cf1ea36
...
...
@@ -160,7 +160,7 @@ void SvXMLAttributeList::Clear()
{
m_pImpl
->
vecAttribute
.
clear
();
OSL_ASSERT
(
!
getLength
()
);
assert
(
!
getLength
()
);
}
void
SvXMLAttributeList
::
RemoveAttribute
(
const
OUString
&
sName
)
...
...
@@ -177,7 +177,7 @@ void SvXMLAttributeList::RemoveAttribute( const OUString& sName )
void
SvXMLAttributeList
::
AppendAttributeList
(
const
uno
::
Reference
<
css
::
xml
::
sax
::
XAttributeList
>
&
r
)
{
OSL_ASSERT
(
r
.
is
()
);
assert
(
r
.
is
()
);
sal_Int16
nMax
=
r
->
getLength
();
SvXMLAttributeList_Impl
::
size_type
nTotalSize
=
...
...
@@ -190,7 +190,7 @@ void SvXMLAttributeList::AppendAttributeList( const uno::Reference< css::xml::sa
r
->
getValueByIndex
(
i
)));
}
OSL_ASSERT
(
nTotalSize
==
(
SvXMLAttributeList_Impl
::
size_type
)
getLength
());
assert
(
nTotalSize
==
(
SvXMLAttributeList_Impl
::
size_type
)
getLength
());
}
void
SvXMLAttributeList
::
SetValueByIndex
(
sal_Int16
i
,
...
...
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