summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_helper.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2020-12-07 14:28:42 +0100
committerGitHub <noreply@github.com>2020-12-07 14:28:42 +0100
commit884dcea8b196f72cb995de9f46d61a6ee6521222 (patch)
tree433c1bc15ac511da91a2206e7e1a55acd4cba8dc /TAO/TAO_IDL/be/be_helper.cpp
parent9b54b6935ed2449438e3e39690ec2bba2ba12945 (diff)
parente1d1203db3e48aa29bb3774f3ba444da26091fb1 (diff)
downloadATCD-884dcea8b196f72cb995de9f46d61a6ee6521222.tar.gz
Merge pull request #1327 from jwillemsen/jwi-taoidlnullptr2
Use nullptr instead of 0 in tao_idl
Diffstat (limited to 'TAO/TAO_IDL/be/be_helper.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_helper.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/TAO/TAO_IDL/be/be_helper.cpp b/TAO/TAO_IDL/be/be_helper.cpp
index b62ed54a062..47629c91ddd 100644
--- a/TAO/TAO_IDL/be/be_helper.cpp
+++ b/TAO/TAO_IDL/be/be_helper.cpp
@@ -76,7 +76,7 @@ const TAO_UNINDENT be_uidt_nl (1);
// Methods of the TAO_OutStream class.
TAO_OutStream::TAO_OutStream (void)
- : fp_ (0),
+ : fp_ (nullptr),
st_ (TAO_CLI_HDR),
indent_level_ (0)
{
@@ -89,10 +89,10 @@ TAO_OutStream::TAO_OutStream (void)
TAO_OutStream::~TAO_OutStream (void)
{
// Close the underlying I/O handle only if it exists.
- if (this->fp_ != 0)
+ if (this->fp_ != nullptr)
{
ACE_OS::fclose (this->fp_);
- this->fp_ = 0;
+ this->fp_ = nullptr;
}
indent_level_ = 0;
@@ -102,12 +102,12 @@ int
TAO_OutStream::open (const char *fname,
TAO_OutStream::STREAM_TYPE st)
{
- if (fname != 0)
+ if (fname != nullptr)
{
// File name exists, open an I/O file handle.
this->fp_ = ACE_OS::fopen (fname, "w");
- if (this->fp_ != 0)
+ if (this->fp_ != nullptr)
{
this->st_ = st;
// Put the copyright notice. Not for the gperf's temp input
@@ -239,7 +239,7 @@ TAO_OutStream::gen_ifdef_macro (const char *flat_name,
"_%s_",
tao_cg->upcase (flat_name));
- if (suffix != 0)
+ if (suffix != nullptr)
{
ACE_OS::strcat (macro, "_");
ACE_OS::strcat (macro, tao_cg->upcase (suffix));
@@ -464,7 +464,7 @@ TAO_OutStream::print (UTL_IdList *idl)
{
bool first = true;
bool second = false;
- Identifier *id = 0;
+ Identifier *id = nullptr;
for (UTL_IdListActiveIterator i (idl); !i.is_done (); i.next ())
{
@@ -505,7 +505,7 @@ TAO_OutStream::print (AST_Expression *expr)
AST_Expression::AST_ExprValue *ev = expr->ev ();
/// Never happens as far as I know, but just in case...
- if (ev == 0)
+ if (ev == nullptr)
{
ACE_ERROR ((LM_ERROR,
ACE_TEXT ("TAO_OutStream::print() - ")