|
错误在这里
kernel/qwindowsystem_qws.cpp:1810: error: comparison between distinct pointer types ‘QWSServer::QWSInputMethod*’ and ‘QWSInputMethod*’ lacks a cast
kernel/qwindowsystem_qws.cpp:1812: error: cannot convert ‘QWSServer::QWSInputMethod*’ to ‘QWSInputMethod*’ in assignment
static QWSInputMethod *current_IM = 0; // current_IM 定义
void QWSServer::setCurrentInputMethod( QWSInputMethod *im )
{
if ( current_IM_State != IMEnd && (QWSInputMethod*)im != current_IM && qwsServer ) // 1810行
qwsServer->sendIMEvent( IMEnd, "", -1, 0 );
current_IM = (QWSInputMethod*)im; //1812行
}
感觉应该是c++的语法问题感觉,加了(QWSInputMethod*)转化im的类型也不行啊.怎么修改呢,有没人遇见过啊 |
|