Simple service crash

Thiago Macieira thiago at kde.org
Tue Nov 6 00:33:00 PST 2007


Em Monday 05 November 2007 17:44:56 Vitaly V. Ch escreveu:
> Sim300Adaptor::get_money_cusd(QString&)':
> sim300_dbus_adaptor.cpp:52: warning: control reaches end of non-void
> function
> sim300_dbus_adaptor.cpp: In member function 'QString
> Sim300Adaptor::get_money_atd(QString&)':
> sim300_dbus_adaptor.cpp:46: warning: control reaches end of non-void
> function
> sim300_dbus_adaptor.cpp: In member function 'QString
> Sim300Adaptor::get_csq(uchar&, uchar&)':
> sim300_dbus_adaptor.cpp:40: warning: control reaches end of non-void
> function

Fix these first. You forgot to edit the file.

Adaptor files are meant to be modified if you don't use the -l classname 
option. I recommend that you do.

If you do, change the command-line to generate the adaptor to be:
$ qdbusxml2cpp -l MainClass -i sim300_dbus.h -a 
sim300_dbus_adaptor.h:sim300_dbus_adaptor.cpp com.i_zum.jukebox.sim300.xml

Which results in the following errors when compiling:
sim300_dbus.h: In member function 'QString Sim300Adaptor::get_csq(uchar&, 
uchar&)':
sim300_dbus.h:41: error: 'QString MainClass::get_csq(uchar&, uchar&)' is 
private
sim300_dbus_adaptor.cpp:39: error: within this context
sim300_dbus.h: In member function 'QString 
Sim300Adaptor::get_money_atd(QString&)':
sim300_dbus.h:42: error: 'QString MainClass::get_money_atd(QString&)' is 
private
sim300_dbus_adaptor.cpp:45: error: within this context
sim300_dbus.h: In member function 'QString 
Sim300Adaptor::get_money_cusd(QString&)':
sim300_dbus.h:43: error: 'QString MainClass::get_money_cusd(QString&)' is 
private
sim300_dbus_adaptor.cpp:51: error: within this context


-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20071106/d42feef8/attachment.pgp 


More information about the dbus mailing list