Revision: 6211
Author: nogu.dev
Date: Tue Mar 2 14:24:49 2010
Log: * qt4/immodule/candidatewindow.cpp
- (CandidateWindow::setPage, CandidateWindow::setIndex):
Remove unneeded casts.
http://code.google.com/p/uim/source/detail?r=6211
Modified:
/trunk/qt4/immodule/candidatewindow.cpp
=======================================
--- /trunk/qt4/immodule/candidatewindow.cpp Sun Feb 28 15:01:04 2010
+++ /trunk/qt4/immodule/candidatewindow.cpp Tue Mar 2 14:24:49 2010
@@ -297,12 +297,12 @@
for ( int i = 0; i < ncandidates ; i++ )
{
uim_candidate cand = stores[ displayLimit * newpage + i ];
- QString headString = QString::fromUtf8( ( const char * )
uim_candidate_get_heading_label( cand ) );
- QString candString = QString::fromUtf8( ( const char * )
uim_candidate_get_cand_str( cand ) );
+ QString headString = QString::fromUtf8(
uim_candidate_get_heading_label( cand ) );
+ QString candString = QString::fromUtf8(
uim_candidate_get_cand_str( cand ) );
// 2004-12-13 Kazuki Ohta <[email protected]>
// Commented out for the next release.
-// QString annotationString = QString::fromUtf8( ( const char * )
uim_candidate_get_annotation_str( cand ) );
+// QString annotationString = QString::fromUtf8(
uim_candidate_get_annotation_str( cand ) );
// insert new item to the candidate list
QTableWidgetItem *headItem = new QTableWidgetItem;
@@ -347,7 +347,7 @@
// set page
int newpage = 0;
if ( displayLimit )
- newpage = ( int ) candidateIndex / displayLimit;
+ newpage = candidateIndex / displayLimit;
if ( pageIndex != newpage )
setPage( newpage );