fix: use TextStreamBase::to_str() instead of to_string()

This commit is contained in:
Tomasz Sowa 2022-04-25 22:05:34 +02:00
parent aad5db9a6a
commit 3d2a635e34
1 changed files with 3 additions and 3 deletions

View File

@ -265,7 +265,7 @@ template<typename char_type, size_t stack_size, size_t heap_block_size>
bool Locale::IsKey(const pt::TextStreamBase<char_type, stack_size, heap_block_size> & key,
bool try_default_too)
{
key.to_string(key_str);
key.to_str(key_str);
return IsKey(key_str, try_default_too);
}
@ -274,7 +274,7 @@ template<typename char_type, size_t stack_size, size_t heap_block_size>
bool Locale::IsKey(const pt::TextStreamBase<char_type, stack_size, heap_block_size> & key,
size_t lang_id, bool try_default_too)
{
key.to_string(key_str);
key.to_str(key_str);
return IsKey(key_str, lang_id, try_default_too);
}
@ -284,7 +284,7 @@ template<typename char_type, size_t stack_size, size_t heap_block_size>
const std::wstring & Locale::Get(const pt::TextStreamBase<char_type, stack_size, heap_block_size> & key,
bool try_default_too)
{
key.to_string(key_str);
key.to_str(key_str);
return Get(key_str, try_default_too);
}