summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qchar.cpp
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2011-07-08 18:24:57 +0400
committerQt by Nokia <qt-info@nokia.com>2011-07-13 13:31:13 +0200
commitd17c76feee9eece4f7d9d1c5cec254842bb0a639 (patch)
treeb2ddf87c707d5dbc2946c64c561d1b83dfe3ef12 /src/corelib/tools/qchar.cpp
parent4a8d8055b45119207880f7f343728f15bf960bba (diff)
drop an obsolete QChar::NoCategory enum value
there is no such category in the Unicode specs. the QChar::NoCategory was a subject of bugs since it was introduced. int 4.6 it's meaning was limited to mention ucs4 > UNICODE_LAST_CODEPOINT only (which is useless anyways) in order to preserve the old (wrong) behavior. fix it now for qtbase Change-Id: I630534824e071090b39772881e747c1fdb758719 Reviewed-on: http://codereview.qt.nokia.com/1584 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/corelib/tools/qchar.cpp')
-rw-r--r--src/corelib/tools/qchar.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/corelib/tools/qchar.cpp b/src/corelib/tools/qchar.cpp
index 475bd55de4..89f19b40e6 100644
--- a/src/corelib/tools/qchar.cpp
+++ b/src/corelib/tools/qchar.cpp
@@ -259,8 +259,6 @@ QT_BEGIN_NAMESPACE
\value Symbol_Other Unicode class name So
- \value NoCategory Qt cannot find an appropriate category for the character.
-
\omitvalue Punctuation_Dask
\sa category()
@@ -764,7 +762,7 @@ QChar::Category QChar::category() const
QChar::Category QChar::category(uint ucs4)
{
if (ucs4 > UNICODE_LAST_CODEPOINT)
- return QChar::NoCategory;
+ return QChar::Other_NotAssigned;
return (QChar::Category) qGetProp(ucs4)->category;
}