summaryrefslogtreecommitdiff
path: root/ace/OS_NS_wchar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/OS_NS_wchar.cpp')
-rw-r--r--ace/OS_NS_wchar.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/ace/OS_NS_wchar.cpp b/ace/OS_NS_wchar.cpp
index 04d7fca9926..5e09dfc0a8d 100644
--- a/ace/OS_NS_wchar.cpp
+++ b/ace/OS_NS_wchar.cpp
@@ -69,8 +69,8 @@ wchar_t *
ACE_OS::wcschr_emulation (const wchar_t *string, wint_t c)
{
for (;*string ; ++string)
- if (*string == ACE_static_cast (wchar_t, c))
- return ACE_const_cast (wchar_t *, string);
+ if (*string == static_cast<wchar_t> (c))
+ return const_cast<wchar_t *> (string);
return 0;
}
@@ -291,7 +291,7 @@ ACE_OS::wcspbrk_emulation (const wchar_t *string,
{
for (scanp = charset; (sc = *scanp++) != 0;)
if (sc == c)
- return ACE_const_cast (wchar_t *, string - 1);
+ return const_cast<wchar_t *> (string - 1);
}
return 0;
@@ -304,7 +304,7 @@ ACE_OS::wcsrchr_emulation (const wchar_t *s, wint_t c)
{
const wchar_t *p = s + ACE_OS::strlen (s);
- while (*p != ACE_static_cast (wchar_t, c))
+ while (*p != static_cast<wchar_t> (c))
if (p == s)
return 0;
else
@@ -318,7 +318,7 @@ ACE_OS::wcsrchr_emulation (wchar_t *s, wint_t c)
{
wchar_t *p = s + ACE_OS::strlen (s);
- while (*p != ACE_static_cast(wchar_t, c))
+ while (*p != static_cast<wchar_t> (c))
if (p == s)
return 0;
else
@@ -369,7 +369,7 @@ ACE_OS::wcsstr_emulation (const wchar_t *string,
string--;
}
- return ACE_const_cast (wchar_t *, string);
+ return const_cast<wchar_t *> (string);
}
#endif /* ACE_HAS_WCHAR && ACE_LACKS_WCSSTR */