mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
to_utf8 test: fix Utf8Encoder constructor
This commit is contained in:
parent
63f09462fd
commit
0b7d11d38d
1 changed files with 1 additions and 2 deletions
|
@ -18,8 +18,7 @@ void testEncoder(ToUTF8::FromType encoding, const std::string &legacyEncFile,
|
|||
std::string utf8Line = getFirstLine(utf8File);
|
||||
|
||||
// create an encoder for specified character encoding
|
||||
ToUTF8::Utf8Encoder encoder;
|
||||
encoder.setEncoding(encoding);
|
||||
ToUTF8::Utf8Encoder encoder (encoding);
|
||||
|
||||
// convert text to UTF-8
|
||||
std::string convertedUtf8Line = encoder.getUtf8(legacyEncLine);
|
||||
|
|
Loading…
Reference in a new issue