mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
9e770f6e53
commit
7d6269a440
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user