fix: use TextStreamBase::to_str() instead of to_string()
This commit is contained in:
parent
aad5db9a6a
commit
3d2a635e34
|
@ -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 Locale::IsKey(const pt::TextStreamBase<char_type, stack_size, heap_block_size> & key,
|
||||||
bool try_default_too)
|
bool try_default_too)
|
||||||
{
|
{
|
||||||
key.to_string(key_str);
|
key.to_str(key_str);
|
||||||
return IsKey(key_str, try_default_too);
|
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,
|
bool Locale::IsKey(const pt::TextStreamBase<char_type, stack_size, heap_block_size> & key,
|
||||||
size_t lang_id, bool try_default_too)
|
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);
|
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,
|
const std::wstring & Locale::Get(const pt::TextStreamBase<char_type, stack_size, heap_block_size> & key,
|
||||||
bool try_default_too)
|
bool try_default_too)
|
||||||
{
|
{
|
||||||
key.to_string(key_str);
|
key.to_str(key_str);
|
||||||
return Get(key_str, try_default_too);
|
return Get(key_str, try_default_too);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue