]> git.lyx.org Git - lyx.git/commit
We use char_type, not size_t for storing UCS4 characters.
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Wed, 24 Jan 2007 14:01:34 +0000 (14:01 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Wed, 24 Jan 2007 14:01:34 +0000 (14:01 +0000)
commit9281cd467543214628bb57abacbc45e3bca5d68a
tree8ed62e0c38098778123930348c91301807790fa1
parentcb71a1c869c0cb548facdc309d978f5fe15c27e5
We use char_type, not size_t for storing UCS4 characters.
This may make a difference when char_type is signed.

* src/frontends/LyXKeySym.h
(getUCSEncoded): change return type from size_t to char_type

* src/frontends/qt4/QLyXKeySym.[Ch]
(getUCSEncoded): ditto

* src/lyxfunc.C
(LyXFunc::processKeySym): adjust to the above and add a FIXME since
this is strange code that looks like it was not intended to do what
it does.

* src/lyxfunc.h
(encoded_last_key): Correct documentation

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16833 a592a061-630c-0410-9148-cb99ea01b6c8
src/frontends/LyXKeySym.h
src/frontends/qt4/QLyXKeySym.C
src/frontends/qt4/QLyXKeySym.h
src/lyxfunc.C
src/lyxfunc.h