summaryrefslogtreecommitdiffstats
path: root/src/gui/accessible
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-05-26 15:13:57 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-05-26 15:14:27 (GMT)
commitbcd23411c8e22e15b863212a544bd64b78fe04b9 (patch)
tree06e331864f61983e82fc9398786ca9d202b07fc4 /src/gui/accessible
parent0ae04e9d7872d170974d15e8fbae8da1949c94df (diff)
downloadQt-bcd23411c8e22e15b863212a544bd64b78fe04b9.zip
Qt-bcd23411c8e22e15b863212a544bd64b78fe04b9.tar.gz
Qt-bcd23411c8e22e15b863212a544bd64b78fe04b9.tar.bz2
some cleanups on private exported symbols
Diffstat (limited to 'src/gui/accessible')
-rw-r--r--src/gui/accessible/qaccessiblewidget.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/gui/accessible/qaccessiblewidget.cpp b/src/gui/accessible/qaccessiblewidget.cpp
index 753ac57..1c2fcef 100644
--- a/src/gui/accessible/qaccessiblewidget.cpp
+++ b/src/gui/accessible/qaccessiblewidget.cpp
@@ -102,24 +102,7 @@ static QString buddyString(const QWidget *widget)
QString Q_GUI_EXPORT qt_accStripAmp(const QString &text)
{
- if (text.isEmpty())
- return text;
-
- const QChar *ch = text.unicode();
- int length = text.length();
- QString str;
- while (length > 0) {
- if (*ch == QLatin1Char('&')) {
- ++ch;
- --length;
- if (!ch)
- --ch;
- }
- str += *ch;
- ++ch;
- --length;
- }
- return str;
+ return QString(text).remove(QLatin1Char('&'));
}
QString Q_GUI_EXPORT qt_accHotKey(const QString &text)