diff options
Diffstat (limited to 'libstdc++-v3/config/locale/ieee_1003.1-2001/messages_members.h')
-rw-r--r-- | libstdc++-v3/config/locale/ieee_1003.1-2001/messages_members.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libstdc++-v3/config/locale/ieee_1003.1-2001/messages_members.h b/libstdc++-v3/config/locale/ieee_1003.1-2001/messages_members.h index 791db089748..18184a2f707 100644 --- a/libstdc++-v3/config/locale/ieee_1003.1-2001/messages_members.h +++ b/libstdc++-v3/config/locale/ieee_1003.1-2001/messages_members.h @@ -39,8 +39,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // Non-virtual member functions. template<typename _CharT> - typename messages<_CharT>::catalog - messages<_CharT>::open(const basic_string<char>& __s, const locale& __loc, + typename messages<_CharT>::catalog + messages<_CharT>::open(const basic_string<char>& __s, const locale& __loc, const char*) const { return this->do_open(__s, __loc); } @@ -50,25 +50,25 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { } template<typename _CharT> - typename messages<_CharT>::catalog - messages<_CharT>::do_open(const basic_string<char>& __s, + typename messages<_CharT>::catalog + messages<_CharT>::do_open(const basic_string<char>& __s, const locale&) const { return reinterpret_cast<catalog>(catopen(__s.c_str(), NL_CAT_LOCALE)); } template<typename _CharT> - typename messages<_CharT>::string_type - messages<_CharT>::do_get(catalog __c, int __setid, int __msgid, + typename messages<_CharT>::string_type + messages<_CharT>::do_get(catalog __c, int __setid, int __msgid, const string_type& __dfault) const { nl_catd __nlc = reinterpret_cast<nl_catd>(__c); - char* __msg = catgets(__nlc, __setid, __msgid, + char* __msg = catgets(__nlc, __setid, __msgid, _M_convert_to_char(__dfault)); return _M_convert_from_char(__msg); } template<typename _CharT> - void - messages<_CharT>::do_close(catalog __c) const + void + messages<_CharT>::do_close(catalog __c) const { catclose(reinterpret_cast<nl_catd>(__c)); } _GLIBCXX_END_NAMESPACE_VERSION |