On 05/04/2010 10:21 AM, Dave Plater wrote:
Hi, I have a gcc45 error in home:plater plasmoid-yawp which I can't understand :- /usr/src/packages/BUILD/yawp-0.3.372/applet/configdialog/dlgaddcity.cpp: In member function 'CityWeather DlgAddCity::getSelectedCity() const': /usr/src/packages/BUILD/yawp-0.3.372/applet/configdialog/dlgaddcity.cpp:72:2: error: cannot call constructor 'DStreamLogger::DStreamLogger' directly /usr/src/packages/BUILD/yawp-0.3.372/applet/configdialog/dlgaddcity.cpp:72:2: error: for a function-style cast, remove the redundant '::DStreamLogger' / in the code snippet where line 72 is dStartFunct();
What does dStartFunct look like?
CityWeather DlgAddCity::getSelectedCity() const { dStartFunct(); const QListWidgetItem * item = cityList->currentItem(); CityWeather cityInfo; if( item ) { cityInfo.setCity( QUrl::fromPercentEncoding(item->data(CityRole).toString().toUtf8()) ); cityInfo.setCountry( QUrl::fromPercentEncoding(item->data(CountryRole).toString().toUtf8()) ); cityInfo.setCountryCode( QUrl::fromPercentEncoding(item->data(CountryCodeRole).toString().toUtf8()) ); cityInfo.setExtraData( QUrl::fromPercentEncoding(item->data(ExtraDataRole).toString().toUtf8()) ); cityInfo.setProvider( QUrl::fromPercentEncoding(item->data(ProviderRole).toString().toUtf8()) ); } dDebug() << cityInfo.city() << cityInfo.country() << cityInfo.countryCode() << cityInfo.extraData() << cityInfo.provider(); dEndFunct(); return cityInfo; }
I've found DStreamLogger::DStreamLogger in streamlogger.cpp but if I remove ::DStreamLogger it has no effect on the error but brings up a gcc44 error.
Thanks Dave P
-- Robert Schweikert MAY THE SOURCE BE WITH YOU Software Engineer Consultant LINUX rschweikert@novell.com 781-464-8147 Novell Making IT Work As One -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org