summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKnut Petter Svendsen <knut@altuma.no>2020-01-24 16:03:01 +0100
committerKnut Petter Svendsen <knut@altuma.no>2020-01-24 16:03:01 +0100
commit0af017fd1ff2e70f47308d9e321a8a7ffcc41057 (patch)
tree4256fcc4ebd2a6259a91cb66b0eccc28872336f0
parent6166895e4fab04b76525a5a1401ec294a73ed52b (diff)
downloadATCD-0af017fd1ff2e70f47308d9e321a8a7ffcc41057.tar.gz
Fixes after review
-rw-r--r--TAO/TAO_IDL/util/utl_global.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/TAO/TAO_IDL/util/utl_global.cpp b/TAO/TAO_IDL/util/utl_global.cpp
index 7713e3d1b18..ab7c95fc42e 100644
--- a/TAO/TAO_IDL/util/utl_global.cpp
+++ b/TAO/TAO_IDL/util/utl_global.cpp
@@ -1947,11 +1947,9 @@ namespace
idl_global_->set_filename(0);
// Name this pseudo-file "builtin-N"
-#define BUILTIN_NAME_BUFFER_SIZE 64
- static char buffer[BUILTIN_NAME_BUFFER_SIZE];
+ static char buffer[64];
static unsigned n = 1;
- ACE_OS::snprintf (&buffer[0], BUILTIN_NAME_BUFFER_SIZE, "builtin-%u", n++);
-#undef BUILTIN_NAME_BUFFER_SIZE
+ ACE_OS::snprintf (&buffer[0], sizeof buffer, "builtin-%u", n++);
UTL_String utl_string (&buffer[0], true);
idl_global_->idl_src_file (new UTL_String (&utl_string, true));
idl_global_->set_filename (new UTL_String (&utl_string, true));
@@ -1987,7 +1985,7 @@ namespace
tao_yylex_destroy ();
}
- private:
+ private:
IDL_GlobalData* idl_global_;
UTL_String *old_filename_;
long old_lineno_;