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
5d353ff6
Kaydet (Commit)
5d353ff6
authored
Kas 10, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:nullptr (automatic rewrite)
Change-Id: I31e61fc91dff70f32143d84ccf308f2bbc9c740e
üst
01b49802
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
20 deletions
+20
-20
bootstrapfixture.cxx
test/source/bootstrapfixture.cxx
+1
-1
diff.cxx
test/source/diff/diff.cxx
+11
-11
htmltesttools.cxx
test/source/htmltesttools.cxx
+1
-1
vclbootstrapprotector.cxx
test/source/vclbootstrapprotector.cxx
+1
-1
xmltesttools.cxx
test/source/xmltesttools.cxx
+1
-1
xmlwriter.cxx
test/source/xmlwriter.cxx
+5
-5
No files found.
test/source/bootstrapfixture.cxx
Dosyayı görüntüle @
5d353ff6
...
@@ -68,7 +68,7 @@ void test_init_impl(bool bAssertOnDialog, bool bNeedUCB,
...
@@ -68,7 +68,7 @@ void test_init_impl(bool bAssertOnDialog, bool bNeedUCB,
// Make GraphicConverter work, normally done in desktop::Desktop::Main()
// Make GraphicConverter work, normally done in desktop::Desktop::Main()
Application
::
SetFilterHdl
(
Application
::
SetFilterHdl
(
LINK
(
0
,
test
::
BootstrapFixture
,
ImplInitFilterHdl
));
LINK
(
nullptr
,
test
::
BootstrapFixture
,
ImplInitFilterHdl
));
if
(
bNeedUCB
)
if
(
bNeedUCB
)
{
{
...
...
test/source/diff/diff.cxx
Dosyayı görüntüle @
5d353ff6
...
@@ -38,8 +38,8 @@ struct tolerance
...
@@ -38,8 +38,8 @@ struct tolerance
}
}
tolerance
()
tolerance
()
:
elementName
(
NULL
)
:
elementName
(
nullptr
)
,
attribName
(
NULL
)
,
attribName
(
nullptr
)
,
relative
(
false
)
,
relative
(
false
)
,
value
(
0.0
)
,
value
(
0.0
)
{
{
...
@@ -156,8 +156,8 @@ void XMLDiff::loadToleranceFile(xmlDocPtr xmlToleranceFile)
...
@@ -156,8 +156,8 @@ void XMLDiff::loadToleranceFile(xmlDocPtr xmlToleranceFile)
return
;
return
;
}
}
#endif
#endif
xmlNodePtr
child
=
NULL
;
xmlNodePtr
child
=
nullptr
;
for
(
child
=
root
->
children
;
child
!=
NULL
;
child
=
child
->
next
)
for
(
child
=
root
->
children
;
child
!=
nullptr
;
child
=
child
->
next
)
{
{
// assume a valid xml file
// assume a valid xml file
if
(
child
->
type
!=
XML_ELEMENT_NODE
)
if
(
child
->
type
!=
XML_ELEMENT_NODE
)
...
@@ -196,7 +196,7 @@ bool checkForEmptyChildren(xmlNodePtr node)
...
@@ -196,7 +196,7 @@ bool checkForEmptyChildren(xmlNodePtr node)
if
(
!
node
)
if
(
!
node
)
return
true
;
return
true
;
for
(;
node
!=
NULL
;
node
=
node
->
next
)
for
(;
node
!=
nullptr
;
node
=
node
->
next
)
{
{
if
(
node
->
type
==
XML_ELEMENT_NODE
)
if
(
node
->
type
==
XML_ELEMENT_NODE
)
return
false
;
return
false
;
...
@@ -225,9 +225,9 @@ bool XMLDiff::compareElements(xmlNode* node1, xmlNode* node2)
...
@@ -225,9 +225,9 @@ bool XMLDiff::compareElements(xmlNode* node1, xmlNode* node2)
#endif
#endif
// compare children
// compare children
xmlNode
*
child2
=
NULL
;
xmlNode
*
child2
=
nullptr
;
xmlNode
*
child1
=
NULL
;
xmlNode
*
child1
=
nullptr
;
for
(
child1
=
node1
->
children
,
child2
=
node2
->
children
;
child1
!=
NULL
&&
child2
!=
NULL
;
child1
=
child1
->
next
,
child2
=
child2
->
next
)
for
(
child1
=
node1
->
children
,
child2
=
node2
->
children
;
child1
!=
nullptr
&&
child2
!=
nullptr
;
child1
=
child1
->
next
,
child2
=
child2
->
next
)
{
{
if
(
child1
->
type
==
XML_ELEMENT_NODE
)
if
(
child1
->
type
==
XML_ELEMENT_NODE
)
{
{
...
@@ -290,9 +290,9 @@ bool compareValuesWithTolerance(double val1, double val2, double tolerance, bool
...
@@ -290,9 +290,9 @@ bool compareValuesWithTolerance(double val1, double val2, double tolerance, bool
bool
XMLDiff
::
compareAttributes
(
xmlNodePtr
node1
,
xmlNodePtr
node2
)
bool
XMLDiff
::
compareAttributes
(
xmlNodePtr
node1
,
xmlNodePtr
node2
)
{
{
xmlAttrPtr
attr1
=
NULL
;
xmlAttrPtr
attr1
=
nullptr
;
xmlAttrPtr
attr2
=
NULL
;
xmlAttrPtr
attr2
=
nullptr
;
for
(
attr1
=
node1
->
properties
,
attr2
=
node2
->
properties
;
attr1
!=
NULL
&&
attr2
!=
NULL
;
attr1
=
attr1
->
next
,
attr2
=
attr2
->
next
)
for
(
attr1
=
node1
->
properties
,
attr2
=
node2
->
properties
;
attr1
!=
nullptr
&&
attr2
!=
nullptr
;
attr1
=
attr1
->
next
,
attr2
=
attr2
->
next
)
{
{
#if USE_CPPUNIT
#if USE_CPPUNIT
cppunitAssertEqual
(
attr1
->
name
,
attr2
->
name
);
cppunitAssertEqual
(
attr1
->
name
,
attr2
->
name
);
...
...
test/source/htmltesttools.cxx
Dosyayı görüntüle @
5d353ff6
...
@@ -30,7 +30,7 @@ htmlDocPtr HtmlTestTools::parseHtmlStream(SvStream* pStream)
...
@@ -30,7 +30,7 @@ htmlDocPtr HtmlTestTools::parseHtmlStream(SvStream* pStream)
std
::
unique_ptr
<
sal_uInt8
[]
>
pBuffer
(
new
sal_uInt8
[
nSize
+
1
]);
std
::
unique_ptr
<
sal_uInt8
[]
>
pBuffer
(
new
sal_uInt8
[
nSize
+
1
]);
pStream
->
Read
(
pBuffer
.
get
(),
nSize
);
pStream
->
Read
(
pBuffer
.
get
(),
nSize
);
pBuffer
[
nSize
]
=
0
;
pBuffer
[
nSize
]
=
0
;
return
htmlParseDoc
(
reinterpret_cast
<
xmlChar
*>
(
pBuffer
.
get
()),
NULL
);
return
htmlParseDoc
(
reinterpret_cast
<
xmlChar
*>
(
pBuffer
.
get
()),
nullptr
);
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
test/source/vclbootstrapprotector.cxx
Dosyayı görüntüle @
5d353ff6
...
@@ -81,7 +81,7 @@ IMPL_STATIC_LINK_NOARG_TYPED(Protector, deinitHook, LinkParamNone*, void)
...
@@ -81,7 +81,7 @@ IMPL_STATIC_LINK_NOARG_TYPED(Protector, deinitHook, LinkParamNone*, void)
}
}
css
::
uno
::
Reference
<
css
::
lang
::
XComponent
>
(
css
::
uno
::
Reference
<
css
::
lang
::
XComponent
>
(
context
,
css
::
uno
::
UNO_QUERY_THROW
)
->
dispose
();
context
,
css
::
uno
::
UNO_QUERY_THROW
)
->
dispose
();
comphelper
::
setProcessServiceFactory
(
0
);
comphelper
::
setProcessServiceFactory
(
nullptr
);
}
}
}
}
...
...
test/source/xmltesttools.cxx
Dosyayı görüntüle @
5d353ff6
...
@@ -139,7 +139,7 @@ void XmlTestTools::assertXPathNoAttribute(xmlDocPtr pXmlDoc, const OString& rXPa
...
@@ -139,7 +139,7 @@ void XmlTestTools::assertXPathNoAttribute(xmlDocPtr pXmlDoc, const OString& rXPa
1
,
xmlXPathNodeSetGetLength
(
pXmlNodes
));
1
,
xmlXPathNodeSetGetLength
(
pXmlNodes
));
xmlNodePtr
pXmlNode
=
pXmlNodes
->
nodeTab
[
0
];
xmlNodePtr
pXmlNode
=
pXmlNodes
->
nodeTab
[
0
];
CPPUNIT_ASSERT_EQUAL_MESSAGE
(
OString
(
"In <"
+
OString
(
pXmlDoc
->
name
)
+
">, XPath '"
+
rXPath
+
"' unexpected '"
+
rAttribute
+
"' attribute"
).
getStr
(),
CPPUNIT_ASSERT_EQUAL_MESSAGE
(
OString
(
"In <"
+
OString
(
pXmlDoc
->
name
)
+
">, XPath '"
+
rXPath
+
"' unexpected '"
+
rAttribute
+
"' attribute"
).
getStr
(),
static_cast
<
xmlChar
*>
(
0
),
xmlGetProp
(
pXmlNode
,
BAD_CAST
(
rAttribute
.
getStr
())));
static_cast
<
xmlChar
*>
(
nullptr
),
xmlGetProp
(
pXmlNode
,
BAD_CAST
(
rAttribute
.
getStr
())));
xmlXPathFreeObject
(
pXmlObj
);
xmlXPathFreeObject
(
pXmlObj
);
}
}
...
...
test/source/xmlwriter.cxx
Dosyayı görüntüle @
5d353ff6
...
@@ -41,7 +41,7 @@ int lclCloseCallback(void* pContext)
...
@@ -41,7 +41,7 @@ int lclCloseCallback(void* pContext)
XmlWriter
::
XmlWriter
(
SvStream
*
pStream
)
:
XmlWriter
::
XmlWriter
(
SvStream
*
pStream
)
:
mpStream
(
pStream
),
mpStream
(
pStream
),
mpWriter
(
NULL
)
mpWriter
(
nullptr
)
{}
{}
XmlWriter
::~
XmlWriter
()
XmlWriter
::~
XmlWriter
()
...
@@ -49,12 +49,12 @@ XmlWriter::~XmlWriter()
...
@@ -49,12 +49,12 @@ XmlWriter::~XmlWriter()
void
XmlWriter
::
startDocument
()
void
XmlWriter
::
startDocument
()
{
{
if
(
mpWriter
==
NULL
&&
mpStream
!=
NULL
)
if
(
mpWriter
==
nullptr
&&
mpStream
!=
nullptr
)
{
{
xmlOutputBufferPtr
xmlOutBuffer
=
xmlOutputBufferCreateIO
(
lclWriteCallback
,
lclCloseCallback
,
mpStream
,
NULL
);
xmlOutputBufferPtr
xmlOutBuffer
=
xmlOutputBufferCreateIO
(
lclWriteCallback
,
lclCloseCallback
,
mpStream
,
nullptr
);
mpWriter
=
xmlNewTextWriter
(
xmlOutBuffer
);
mpWriter
=
xmlNewTextWriter
(
xmlOutBuffer
);
xmlTextWriterSetIndent
(
mpWriter
,
1
);
xmlTextWriterSetIndent
(
mpWriter
,
1
);
xmlTextWriterStartDocument
(
mpWriter
,
NULL
,
"UTF-8"
,
NULL
);
xmlTextWriterStartDocument
(
mpWriter
,
nullptr
,
"UTF-8"
,
nullptr
);
}
}
}
}
...
@@ -62,7 +62,7 @@ void XmlWriter::endDocument()
...
@@ -62,7 +62,7 @@ void XmlWriter::endDocument()
{
{
xmlTextWriterEndDocument
(
mpWriter
);
xmlTextWriterEndDocument
(
mpWriter
);
xmlFreeTextWriter
(
mpWriter
);
xmlFreeTextWriter
(
mpWriter
);
mpWriter
=
NULL
;
mpWriter
=
nullptr
;
}
}
void
XmlWriter
::
element
(
const
OString
&
name
)
void
XmlWriter
::
element
(
const
OString
&
name
)
...
...
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