Revision: 6274
Author: nogu.dev
Date: Wed Mar 24 15:04:02 2010
Log: * qt4/immodule/quiminputcontext.cpp
- (QUimInputContext::QUimInputContext):
Remove meaningless code. psegs is initialized by default.
- (QUimInputContext::clearPreedit): Remove meaningless code.
After all elements are removed, we don't have to call clear() any more.
http://code.google.com/p/uim/source/detail?r=6274
Modified:
/trunk/qt4/immodule/quiminputcontext.cpp
=======================================
--- /trunk/qt4/immodule/quiminputcontext.cpp Mon Mar 22 07:41:15 2010
+++ /trunk/qt4/immodule/quiminputcontext.cpp Wed Mar 24 15:04:02 2010
@@ -95,10 +95,6 @@
if ( imname )
m_uc = createUimContext( imname );
- while ( !psegs.isEmpty() )
- delete psegs.takeFirst();
- psegs.clear();
-
cwin = new CandidateWindow( 0 );
cwin->setQUimInputContext( this );
cwin->hide();
@@ -587,12 +583,8 @@
void QUimInputContext::clearPreedit()
{
- // delete first
while ( !psegs.isEmpty() )
delete psegs.takeFirst();
-
- // and clear
- psegs.clear();
}
void QUimInputContext::pushbackPreeditString( int attr, const QString& str
)
To unsubscribe from this group, send email to uim-commit+unsubscribegooglegroups.com or
reply to this email with the words "REMOVE ME" as the subject.