[Kde-print-devel] [GSoC2007 openprinting.org] Update 25 June 2007
gavinbeatty at gmail.com
Mon Jun 25 22:37:15 CEST 2007
Oh deary deary me! I actually thought g++ was having issues with
_every other_ argument but the KUrl. You've embarrassed a poor boy
like me now ;)
On 25/06/07, Albert Astals Cid <aacid at kde.org> wrote:
> A Dilluns 25 Juny 2007, Gavin Beatty va escriure:
> > Code has now been uploaded to
> > branches/work/soc-kdeprint-openprintingdotorg. At the moment the code
> > does not compile. This is a C++ issue more than anything - a type issue
> > (even worse! >:( ).
> > Right now, cmakekde/g++ gives this error:
> > <error>
> > .../mainwidget.cpp: In constructor 'MainWidget::MainWidget(QWidget*)':
> > .../mainwidget.cpp:30: error: no matching function for call
> > to 'XmlQueryJob::XmlQueryJob(MainWidget* const, KUrl*&, MainWidget* const)'
> > .../xmlqueryjob.h:16: note: candidates are: XmlQueryJob::XmlQueryJob(const
> > QWidget*, const KUrl&, QObject*)
> > .../xmlqueryjob.h:11: note: XmlQueryJob::XmlQueryJob(const
> > XmlQueryJob&)
> > </error>
> XmlQueryJob wants a const KUrl &url, you are passing it a KUrl *
> so the attached patch fixes the compilation of that class.
> It still does not link as you've defined
> void slotXmlDownloadResult(KJob *job);
> but not implemented it.
> > I'm hesitant to just try casting it all to hell as the problem likely lies
> > somewhere else. And I _hate_ casting const values.
> > I will spend some time on this issue (an annoying enough roadblock) today
> > but will try to work on parsing XML too. I'll just make some queries with
> > wget and try my hand there.
> >  http://websvn.kde.org/branches/work/soc-kdeprint-openprintingdotorg/
> Kde-print-devel mailing list
> Kde-print-devel at kde.org
More information about the Kde-print-devel