diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-28 15:26:45 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-28 15:26:45 +0000 |
commit | 7e1a8e39863c60dd15d97a244f4e43c24c829e5f (patch) | |
tree | 885d5cea82b8255d9fab8cfffb10a6c3237105ee /ace/Registry.cpp | |
parent | a57162581a0fa03c8659100991fd7975c04de565 (diff) | |
download | ATCD-7e1a8e39863c60dd15d97a244f4e43c24c829e5f.tar.gz |
changed "sizeof TCHAR" to "sizeof (TCHAR)" because g++ and Sun C++ (properly) choked on it
Diffstat (limited to 'ace/Registry.cpp')
-rw-r--r-- | ace/Registry.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ace/Registry.cpp b/ace/Registry.cpp index 251806a4926..204e8e4e9f3 100644 --- a/ace/Registry.cpp +++ b/ace/Registry.cpp @@ -907,7 +907,7 @@ ACE_Registry::Binding_Iterator::Object_Iteration::next_n (u_long how_many, while (how_many > 0) { TCHAR string [ACE_Registry::Naming_Context::MAX_CONTEXT_NAME_SIZE]; - u_long size = sizeof string / sizeof TCHAR; + u_long size = sizeof string / sizeof (TCHAR); long result = ::RegEnumValue (this->parent_->naming_context (). key(), this->index_, string, @@ -977,7 +977,7 @@ ACE_Registry::Binding_Iterator::Context_Iteration::next_n (u_long how_many, while (how_many > 0) { TCHAR string [ACE_Registry::Naming_Context::MAX_CONTEXT_NAME_SIZE]; - u_long size = sizeof string / sizeof TCHAR; + u_long size = sizeof string / sizeof (TCHAR); long result = ::RegEnumKeyEx (this->parent_->naming_context (). key (), this->index_, string, @@ -1082,7 +1082,7 @@ int ACE_Predefined_Naming_Contexts::is_local_host (LPCTSTR machine_name) { TCHAR local_host[MAXHOSTNAMELEN]; - int result = ACE_OS::hostname (local_host, sizeof local_host / sizeof TCHAR); + int result = ACE_OS::hostname (local_host, sizeof local_host / sizeof (TCHAR)); if (result == 0) result = !ACE_OS::strcmp (local_host, machine_name); else |