Move encode into anon namespace.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20306 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2007-09-16 10:38:59 +00:00
parent 9e770f6e53
commit 7d6269a440

View File

@ -49,7 +49,9 @@ KeySymbol * createKeySymbol()
} }
static char const encode(string const & encoding, QString const & str) namespace {
char encode(string const & encoding, QString const & str)
{ {
typedef map<string, QTextCodec *> EncodingMap; typedef map<string, QTextCodec *> EncodingMap;
EncodingMap encoding_map; EncodingMap encoding_map;
@ -81,6 +83,7 @@ static char const encode(string const & encoding, QString const & str)
return codec->fromUnicode(str).data()[0]; return codec->fromUnicode(str).data()[0];
} }
} // anon namespace
GuiKeySymbol::GuiKeySymbol() GuiKeySymbol::GuiKeySymbol()
: KeySymbol(), key_(0) : KeySymbol(), key_(0)