[Webkit-unassigned] [Bug 39958] [Qt] TextBreakIterator QT performance
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 31 16:25:12 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=39958
Kenneth Rohde Christiansen <kenneth at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #57499|review? |review-
Flag| |
--- Comment #4 from Kenneth Rohde Christiansen <kenneth at webkit.org> 2010-05-31 16:25:11 PST ---
(From update of attachment 57499)
WebCore/platform/text/qt/TextBreakIteratorQt.cpp:40
+ static const UChar* tempBuf;
write out the names, 'buffer
WebCore/platform/text/qt/TextBreakIteratorQt.cpp:41
+ static int tempLen;
length
WebCore/platform/text/qt/TextBreakIteratorQt.cpp:50
+ tempBuf=0;
you need space between tempBuf and the 0
WebCore/platform/text/qt/TextBreakIteratorQt.cpp:51
+ tempLen=-1;
same here
WebCore/platform/text/qt/TextBreakIteratorQt.cpp:52
+ type=QTextBoundaryFinder::Word;
and here
WebCore/platform/text/qt/TextBreakIteratorQt.cpp:54
+ if( tempBuf == string && tempLen == length && type == QTextBoundaryFinder::Word ) {
space after the if and no space before the tempBuf, same at the end
WebCore/platform/text/qt/TextBreakIteratorQt.cpp:60
+ tempBuf=string;
same
WebCore/platform/text/qt/TextBreakIteratorQt.cpp:61
+ tempLen=length;
same
WebCore/platform/text/qt/TextBreakIteratorQt.cpp:62
+ type=QTextBoundaryFinder::Word;
same
Apart form this the code seems quite similar, maybe it makes sense creating an inline method instead (using a template)?
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list