mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-11-17 07:48:27 +01:00
Small simplification
This commit is contained in:
parent
f49e4bb759
commit
bea6a41cd4
1 changed files with 1 additions and 4 deletions
|
@ -21,7 +21,6 @@
|
|||
#include "config.h"
|
||||
|
||||
#include <cstring> // for strcpy
|
||||
#include <cstdio> // for sprintf
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
|
@ -332,10 +331,8 @@ unsigned int Header::getCodeFromChar(wchar_t iChar) const
|
|||
m_mapCodeFromChar.find(iChar);
|
||||
if (pair == m_mapCodeFromChar.end())
|
||||
{
|
||||
char s[5];
|
||||
sprintf(s, "%d", iChar);
|
||||
format fmt(_("Header::getCodeFromChar: No code for letter '%1%' (val=%2%)"));
|
||||
fmt % lfw(iChar) % s;
|
||||
fmt % lfw(iChar) % (unsigned) iChar;
|
||||
throw DicException(fmt.str());
|
||||
}
|
||||
return pair->second;
|
||||
|
|
Loading…
Reference in a new issue