Kaydet (Commit) 9690dcc4 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:nullptr (automatic rewrite)

Change-Id: Ic89c5fb56e1f11fa17f6014a8c9722592b144337
üst 715cabb4
......@@ -584,7 +584,7 @@ void generateMemberInitialization(std::ostream& o,
i != members.end(); ++i)
{
sal_Int32 rank;
if ((manager->decompose(i->type, true, 0, &rank, 0, 0)
if ((manager->decompose(i->type, true, nullptr, &rank, nullptr, nullptr)
<= codemaker::UnoType::SORT_CHAR)
&& rank == 0)
{
......@@ -993,7 +993,7 @@ void generateSkeleton(ProgramOptions const & options,
OString compFileName;
OString tmpFileName;
std::ostream* pofs = NULL;
std::ostream* pofs = nullptr;
bool standardout = getOutputStream(options, ".cxx",
&pofs, compFileName, tmpFileName);
......@@ -1154,7 +1154,7 @@ void generateCalcAddin(ProgramOptions const & options,
OString compFileName;
OString tmpFileName;
std::ostream* pofs = NULL;
std::ostream* pofs = nullptr;
bool standardout = getOutputStream(options, ".cxx",
&pofs, compFileName, tmpFileName);
......
......@@ -747,7 +747,7 @@ void printMapsToCppType(
rtl::Reference< unoidl::Entity > const & entity, const char * cppTypeSort)
{
o << "maps to C++ ";
if (cppTypeSort != 0)
if (cppTypeSort != nullptr)
o << cppTypeSort << ' ';
o << "type \"";
......@@ -768,7 +768,7 @@ void generateDocumentation(std::ostream & o,
OUString nucleus;
sal_Int32 rank;
codemaker::UnoType::Sort sort = manager->decompose(
b2u(type), false, &nucleus, &rank, 0, 0);
b2u(type), false, &nucleus, &rank, nullptr, nullptr);
bool comment = true;
if (!delegate.isEmpty()) {
......@@ -862,7 +862,7 @@ void generateDocumentation(std::ostream & o,
} else if (sort <= codemaker::UnoType::SORT_ANY) {
if (comment) {
printMapsToCppType(
o, options, manager, sort, nucleus, rank, arguments, entity, 0);
o, options, manager, sort, nucleus, rank, arguments, entity, nullptr);
o << '\n';
}
} else {
......
......@@ -888,7 +888,7 @@ void generateSkeleton(ProgramOptions const & options,
OString compFileName;
OString tmpFileName;
std::ostream* pofs = NULL;
std::ostream* pofs = nullptr;
bool standardout = getOutputStream(options, ".java",
&pofs, compFileName, tmpFileName);
......
......@@ -117,7 +117,7 @@ void printType(
sal_Int32 rank;
std::vector< OUString > arguments;
codemaker::UnoType::Sort sort = manager->decompose(
name, true, &nucleus, &rank, &arguments, 0);
name, true, &nucleus, &rank, &arguments, nullptr);
printType(
o, options, manager, sort, nucleus, rank, arguments, referenceType,
defaultvalue);
......@@ -662,7 +662,7 @@ void printMapsToJavaType(
std::vector< OUString > const & arguments, const char * javaTypeSort)
{
o << "maps to Java 1.5 ";
if (javaTypeSort != 0) {
if (javaTypeSort != nullptr) {
o << javaTypeSort << ' ';
}
o << "type \"";
......@@ -682,7 +682,7 @@ void generateDocumentation(std::ostream & o,
OUString nucleus;
sal_Int32 rank;
codemaker::UnoType::Sort sort = manager->decompose(
b2u(type), false, &nucleus, &rank, 0, 0);
b2u(type), false, &nucleus, &rank, nullptr, nullptr);
bool comment = true;
if (!delegate.isEmpty()) {
......@@ -772,7 +772,7 @@ void generateDocumentation(std::ostream & o,
o << '\n';
} else if (sort <= codemaker::UnoType::SORT_ANY) {
printMapsToJavaType(
o, options, manager, sort, nucleus, rank, arguments, 0);
o, options, manager, sort, nucleus, rank, arguments, nullptr);
o << '\n';
} else {
switch (sort) {
......
......@@ -459,7 +459,7 @@ bool checkAddinType(rtl::Reference< TypeManager > const & manager,
assert(manager.is());
sal_Int32 rank;
codemaker::UnoType::Sort sort = manager->decompose(
type, true, 0, &rank, 0, 0);
type, true, nullptr, &rank, nullptr, nullptr);
if ( sort == codemaker::UnoType::SORT_LONG ||
sort == codemaker::UnoType::SORT_DOUBLE ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment