Avoid calling charset::convert() if no conversion is needed.
This commit is contained in:
parent
d0ffbb60e6
commit
1a04575750
@ -731,6 +731,9 @@ bool word::isEquivalent(const word& other) const
|
||||
|
||||
const string word::getConvertedText(const charset& dest, const charsetConverterOptions& opts) const
|
||||
{
|
||||
if (dest == m_charset)
|
||||
return m_buffer; // no conversion needed
|
||||
|
||||
string out;
|
||||
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user