Avoid calling charset::convert() if no conversion is needed.

This commit is contained in:
Vincent Richard 2014-01-16 00:17:35 +01:00
parent d0ffbb60e6
commit 1a04575750

View File

@ -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