author | mickeyl <mickeyl> | 2004-04-07 10:32:54 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-04-07 10:32:54 (UTC) |
commit | 364971c08f3d761102daab01889b9fab394f8f08 (patch) (side-by-side diff) | |
tree | 1004de1b8fa1dc8d96f9a559f6e30d7bac32849a | |
parent | 9b1f8d08db8d533ac59975a8badd25e587c2239c (diff) | |
download | opie-364971c08f3d761102daab01889b9fab394f8f08.zip opie-364971c08f3d761102daab01889b9fab394f8f08.tar.gz opie-364971c08f3d761102daab01889b9fab394f8f08.tar.bz2 |
remove bogus '(const char*)' in debug statements
-rw-r--r-- | noncore/applets/zkbapplet/zkbwidget.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/keyz-cfg/zkb.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/keyz-cfg/zkbcfg.cpp | 4 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/configwindow.cpp | 8 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/mainwindow.cpp | 18 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/scanlist.cpp | 24 | ||||
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 26 | ||||
-rw-r--r-- | noncore/settings/networksettings/wlan/wlanimp2.cpp | 4 | ||||
-rw-r--r-- | noncore/settings/sysinfo/benchmarkinfo.cpp | 2 |
9 files changed, 45 insertions, 45 deletions
diff --git a/noncore/applets/zkbapplet/zkbwidget.cpp b/noncore/applets/zkbapplet/zkbwidget.cpp index 13d554c..38bfba9 100644 --- a/noncore/applets/zkbapplet/zkbwidget.cpp +++ b/noncore/applets/zkbapplet/zkbwidget.cpp @@ -96,3 +96,3 @@ QSize ZkbWidget::sizeHint() const { void ZkbWidget::stateChanged(const QString& s) { -// odebug << "stateChanged: " << (const char*) s.utf8() << "\n" << oendl; +// odebug << "stateChanged: " << s.utf8() << "\n" << oendl; setText(s); diff --git a/noncore/apps/keyz-cfg/zkb.cpp b/noncore/apps/keyz-cfg/zkb.cpp index 8382615..58bde2a 100644 --- a/noncore/apps/keyz-cfg/zkb.cpp +++ b/noncore/apps/keyz-cfg/zkb.cpp @@ -366,3 +366,3 @@ State* Keymap::getStateByLabel(const QString& label) { -// odebug << "look for: " << (const char*) name.utf8() << "\n" << oendl; +// odebug << "look for: " << name.utf8() << "\n" << oendl; QMap<QString, State*>::Iterator sit = states.find(name); diff --git a/noncore/apps/keyz-cfg/zkbcfg.cpp b/noncore/apps/keyz-cfg/zkbcfg.cpp index f1d53ba..24bd897 100644 --- a/noncore/apps/keyz-cfg/zkbcfg.cpp +++ b/noncore/apps/keyz-cfg/zkbcfg.cpp @@ -21,3 +21,3 @@ bool ZkbConfig::load(const QString& file, Keymap& keymap, const QString& prefix) - odebug << "start loading file=" << (const char*) file.utf8() << "\n" << oendl; + odebug << "start loading file=" << file.utf8() << "\n" << oendl; if (includedFiles.find(fi.absFilePath()) != includedFiles.end()) { @@ -127,3 +127,3 @@ bool ZkbHandler::startStateElement(const QString& name, -// odebug << "state name=" << (const char*) currentStateName.utf8() << "\n" << oendl; +// odebug << "state name=" << currentStateName.utf8() << "\n" << oendl; diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp index bfdb20a..279b39c 100644 --- a/noncore/net/wellenreiter/gui/configwindow.cpp +++ b/noncore/net/wellenreiter/gui/configwindow.cpp @@ -239,3 +239,3 @@ void WellenreiterConfigWindow::getCaptureFileNameClicked() QString name = ( (WellenreiterMainWindow*) qApp->mainWidget() )->getFileName(true); - odebug << "name = " << (const char*) name << "" << oendl; + odebug << "name = " << name << "" << oendl; if ( !name.isEmpty() ) @@ -314,3 +314,3 @@ void WellenreiterConfigWindow::performAction( const QString& type, { - owarn << "WellenreiterConfigWindow::performAction(): unknown type '" << (const char*) type << "'" << oendl; + owarn << "WellenreiterConfigWindow::performAction(): unknown type '" << type << "'" << oendl; return; @@ -318,3 +318,3 @@ void WellenreiterConfigWindow::performAction( const QString& type, - odebug << "for event '" << (const char*) type << "' I'm going to perform action " << action << " (script='" << (const char*) script << "')" << oendl; + odebug << "for event '" << (const char*) type << "' I'm going to perform action " << action << " (script='" << script << "')" << oendl; @@ -343,3 +343,3 @@ void WellenreiterConfigWindow::performAction( const QString& type, - odebug << "going to call script '" << (const char*) script << "'" << oendl; + odebug << "going to call script '" << script << "'" << oendl; ::system( script ); diff --git a/noncore/net/wellenreiter/gui/mainwindow.cpp b/noncore/net/wellenreiter/gui/mainwindow.cpp index a4b8839..8525109 100644 --- a/noncore/net/wellenreiter/gui/mainwindow.cpp +++ b/noncore/net/wellenreiter/gui/mainwindow.cpp @@ -254,3 +254,3 @@ void WellenreiterMainWindow::demoReadFromGps() GPS* gps = new GPS( this ); - odebug << "Wellenreiter::demoReadFromGps(): url=gps://" << (const char*) configwindow->gpsdHost->currentText() << ":" << configwindow->gpsdPort->value() << "/" << oendl; + odebug << "Wellenreiter::demoReadFromGps(): url=gps://" << configwindow->gpsdHost->currentText() << ":" << configwindow->gpsdPort->value() << "/" << oendl; gps->open( configwindow->gpsdHost->currentText(), configwindow->gpsdPort->value() ); @@ -308,3 +308,3 @@ void WellenreiterMainWindow::fileSaveLog() f.close(); - odebug << "Saved log to file '" << (const char*) fname << "'" << oendl; + odebug << "Saved log to file '" << fname << "'" << oendl; } @@ -312,3 +312,3 @@ void WellenreiterMainWindow::fileSaveLog() { - odebug << "Problem saving log to file '" << (const char*) fname << "'" << oendl; + odebug << "Problem saving log to file '" << fname << "'" << oendl; } @@ -329,3 +329,3 @@ void WellenreiterMainWindow::fileSaveSession() f.close(); - odebug << "Saved session to file '" << (const char*) fname << "'" << oendl; + odebug << "Saved session to file '" << fname << "'" << oendl; } @@ -333,3 +333,3 @@ void WellenreiterMainWindow::fileSaveSession() { - odebug << "Problem saving session to file '" << (const char*) fname << "'" << oendl; + odebug << "Problem saving session to file '" << fname << "'" << oendl; } @@ -351,3 +351,3 @@ void WellenreiterMainWindow::fileSaveHex() f.close(); - odebug << "Saved hex log to file '" << (const char*) fname << "'" << oendl; + odebug << "Saved hex log to file '" << fname << "'" << oendl; } @@ -355,3 +355,3 @@ void WellenreiterMainWindow::fileSaveHex() { - odebug << "Problem saving hex log to file '" << (const char*) fname << "'" << oendl; + odebug << "Problem saving hex log to file '" << fname << "'" << oendl; } @@ -372,3 +372,3 @@ void WellenreiterMainWindow::fileLoadSession() f.close(); - odebug << "Loaded session from file '" << (const char*) fname << "'" << oendl; + odebug << "Loaded session from file '" << fname << "'" << oendl; } @@ -376,3 +376,3 @@ void WellenreiterMainWindow::fileLoadSession() { - odebug << "Problem loading session from file '" << (const char*) fname << "'" << oendl; + odebug << "Problem loading session from file '" << fname << "'" << oendl; } diff --git a/noncore/net/wellenreiter/gui/scanlist.cpp b/noncore/net/wellenreiter/gui/scanlist.cpp index a2be782..ed9ec14 100644 --- a/noncore/net/wellenreiter/gui/scanlist.cpp +++ b/noncore/net/wellenreiter/gui/scanlist.cpp @@ -144,3 +144,3 @@ void MScanListView::addNewItem( const QString& type, #ifdef DEBUG - odebug << "itemtext: " << (const char*) item->text( col_essid ) << "" << oendl; + odebug << "itemtext: " << item->text( col_essid ) << "" << oendl; #endif @@ -160,3 +160,3 @@ void MScanListView::addNewItem( const QString& type, #ifdef DEBUG - odebug << "subitemtext: " << (const char*) item->text( col_ap ) << "" << oendl; + odebug << "subitemtext: " << item->text( col_ap ) << "" << oendl; #endif @@ -169,3 +169,3 @@ void MScanListView::addNewItem( const QString& type, #ifdef DEBUG - odebug << "" << (const char*) macaddr << " is a dupe - ignoring..." << oendl; + odebug << "" << macaddr << " is a dupe - ignoring..." << oendl; #endif @@ -187,3 +187,3 @@ void MScanListView::addNewItem( const QString& type, #ifdef DEBUG - odebug << "inserting new station " << (const char*) macaddr << "" << oendl; + odebug << "inserting new station " << macaddr << "" << oendl; #endif @@ -213,3 +213,3 @@ void MScanListView::addIfNotExisting( MScanListItem* network, const OMacAddress& #ifdef DEBUG - odebug << "subitemtext: " << (const char*) subitem->text( col_ap ) << "" << oendl; + odebug << "subitemtext: " << subitem->text( col_ap ) << "" << oendl; #endif @@ -222,3 +222,3 @@ void MScanListView::addIfNotExisting( MScanListItem* network, const OMacAddress& #ifdef DEBUG - odebug << "" << (const char*) addr.toString(true) << " is a dupe - ignoring..." << oendl; + odebug << "" << addr.toString(true) << " is a dupe - ignoring..." << oendl; #endif @@ -247,3 +247,3 @@ void MScanListView::WDStraffic( const OMacAddress& from, const OMacAddress& to, { - odebug << "WDSTraffic: " << (const char*) viaFrom.toString() << " and " << (const char*) viaTo.toString() << " seem to form a WDS" << oendl; + odebug << "WDSTraffic: " << (const char*) viaFrom.toString() << " and " << viaTo.toString() << " seem to form a WDS" << oendl; QString s; @@ -325,3 +325,3 @@ void MScanListView::identify( const OMacAddress& macaddr, const QString& ip ) { - odebug << "identify " << (const char*) macaddr.toString() << " = " << (const char*) ip << "" << oendl; + odebug << "identify " << (const char*) macaddr.toString() << " = " << ip << "" << oendl; @@ -344,3 +344,3 @@ void MScanListView::addService( const QString& name, const OMacAddress& macaddr, { - odebug << "addService '" << (const char*) name << "', Server = " << (const char*) macaddr.toString() << " = " << (const char*) ip << "" << oendl; + odebug << "addService '" << (const char*) name << "', Server = " << (const char*) macaddr.toString() << " = " << ip << "" << oendl; @@ -361,3 +361,3 @@ void MScanListView::addService( const QString& name, const OMacAddress& macaddr, #ifdef DEBUG - odebug << "subitemtext: " << (const char*) subitem->text( col_essid ) << "" << oendl; + odebug << "subitemtext: " << subitem->text( col_essid ) << "" << oendl; #endif @@ -370,3 +370,3 @@ void MScanListView::addService( const QString& name, const OMacAddress& macaddr, #ifdef DEBUG - odebug << "" << (const char*) name << " is a dupe - ignoring..." << oendl; + odebug << "" << name << " is a dupe - ignoring..." << oendl; #endif @@ -557,3 +557,3 @@ void MScanListItem::receivedBeacon() #ifdef DEBUG - odebug << "MScanListItem " << (const char*) _macaddr << ": received beacon #" << _beacons << "" << oendl; + odebug << "MScanListItem " << _macaddr << ": received beacon #" << _beacons << "" << oendl; #endif diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp index fad6efd..822bde8 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp @@ -143,3 +143,3 @@ void Wellenreiter::handleNotification( OPacket* p ) QString action = configwindow->parsePackets->protocolAction( name ); - odebug << "parsePacket-action for '" << (const char*) name << "' seems to be '" << (const char*) action << "'" << oendl; + odebug << "parsePacket-action for '" << (const char*) name << "' seems to be '" << action << "'" << oendl; doAction( action, name, p ); @@ -148,3 +148,3 @@ void Wellenreiter::handleNotification( OPacket* p ) { - odebug << "protocol '" << (const char*) name << "' not checked in parsePackets." << oendl; + odebug << "protocol '" << name << "' not checked in parsePackets." << oendl; } @@ -160,3 +160,3 @@ void Wellenreiter::handleManagementFrame( OPacket* p, OWaveLanManagementPacket* else if ( manage->managementType() == "ProbeResponse" ) handleManagementFrameProbeResponse( p, manage ); - else owarn << "Wellenreiter::handleManagementFrame(): '" << (const char*) manage->managementType() << "' - please handle me!" << oendl; + else owarn << "Wellenreiter::handleManagementFrame(): '" << manage->managementType() << "' - please handle me!" << oendl; } @@ -249,3 +249,3 @@ void Wellenreiter::handleControlFrame( OPacket* p, OWaveLanControlPacket* contro { - odebug << "Wellenreiter::handleControlFrame - please handle " << (const char*) control->controlType() << " in a future version! :D" << oendl; + odebug << "Wellenreiter::handleControlFrame - please handle " << control->controlType() << " in a future version! :D" << oendl; } @@ -298,3 +298,3 @@ void Wellenreiter::handleARPData( OPacket* p, OARPPacket*, OMacAddress& source, { - odebug << "Received ARP traffic (type '" << (const char*) arp->type() << "'): " << oendl; + odebug << "Received ARP traffic (type '" << arp->type() << "'): " << oendl; if ( arp->type() == "REQUEST" ) @@ -319,6 +319,6 @@ void Wellenreiter::handleIPData( OPacket* p, OIPPacket* ip, OMacAddress& source, { - odebug << "Received DHCP '" << (const char*) dhcp->type() << "' packet" << oendl; + odebug << "Received DHCP '" << dhcp->type() << "' packet" << oendl; if ( dhcp->type() == "OFFER" ) { - odebug << "DHCP: '" << (const char*) source.toString() << "' ('" << (const char*) dhcp->serverAddress().toString() << "') seems to be a DHCP server." << oendl; + odebug << "DHCP: '" << (const char*) source.toString() << "' ('" << dhcp->serverAddress().toString() << "') seems to be a DHCP server." << oendl; netView()->identify( source, dhcp->serverAddress().toString() ); @@ -328,3 +328,3 @@ void Wellenreiter::handleIPData( OPacket* p, OIPPacket* ip, OMacAddress& source, { - odebug << "DHCP: '" << (const char*) dhcp->clientMacAddress().toString() << "' ('" << (const char*) dhcp->yourAddress().toString() << "') accepted the offered DHCP address." << oendl; + odebug << "DHCP: '" << (const char*) dhcp->clientMacAddress().toString() << "' ('" << dhcp->yourAddress().toString() << "') accepted the offered DHCP address." << oendl; netView()->identify( dhcp->clientMacAddress(), dhcp->yourAddress().toString() ); @@ -362,3 +362,3 @@ bool Wellenreiter::checkDumpPacket( OPacket* p ) QString action = configwindow->capturePackets->protocolAction( name ); - odebug << "capturePackets-action for '" << (const char*) name << "' seems to be '" << (const char*) action << "'" << oendl; + odebug << "capturePackets-action for '" << (const char*) name << "' seems to be '" << action << "'" << oendl; if ( action == "Discard" ) @@ -371,3 +371,3 @@ bool Wellenreiter::checkDumpPacket( OPacket* p ) { - odebug << "protocol '" << (const char*) name << "' not checked in capturePackets." << oendl; + odebug << "protocol '" << name << "' not checked in capturePackets." << oendl; } @@ -545,3 +545,3 @@ void Wellenreiter::startClicked() case DEVTYPE_MANUAL: QMessageBox::information( this, "Wellenreiter II", tr( "Bring your device into\nmonitor mode now." ) ); break; - case DEVTYPE_FILE: odebug << "Wellenreiter: Capturing from file '" << (const char*) interface << "'" << oendl; break; + case DEVTYPE_FILE: odebug << "Wellenreiter: Capturing from file '" << interface << "'" << oendl; break; default: assert( 0 ); // shouldn't reach this @@ -566,3 +566,3 @@ void Wellenreiter::startClicked() { - odebug << "Wellenreiter:GPS enabled @ " << (const char*) configwindow->gpsdHost->currentText() << ":" << configwindow->gpsdPort->value() << "" << oendl; + odebug << "Wellenreiter:GPS enabled @ " << configwindow->gpsdHost->currentText() << ":" << configwindow->gpsdPort->value() << "" << oendl; gps->open( configwindow->gpsdHost->currentText(), configwindow->gpsdPort->value() ); @@ -590,3 +590,3 @@ void Wellenreiter::startClicked() - odebug << "Wellenreiter:: dumping to " << (const char*) dumpname << "" << oendl; + odebug << "Wellenreiter:: dumping to " << dumpname << "" << oendl; pcap->openDumpFile( dumpname ); diff --git a/noncore/settings/networksettings/wlan/wlanimp2.cpp b/noncore/settings/networksettings/wlan/wlanimp2.cpp index e483efe..e4aa2f9 100644 --- a/noncore/settings/networksettings/wlan/wlanimp2.cpp +++ b/noncore/settings/networksettings/wlan/wlanimp2.cpp @@ -309,3 +309,3 @@ void WLANImp::rescanNeighbourhood() QString name = interface->getInterfaceName(); - odebug << "rescanNeighbourhood via '" << (const char*) name << "'" << oendl; + odebug << "rescanNeighbourhood via '" << name << "'" << oendl; @@ -337,3 +337,3 @@ void WLANImp::rescanNeighbourhood() { - odebug << "rescanNeighbourhood(): device type seems to be '" << (const char*) devicetype << "'" << oendl; + odebug << "rescanNeighbourhood(): device type seems to be '" << devicetype << "'" << oendl; } diff --git a/noncore/settings/sysinfo/benchmarkinfo.cpp b/noncore/settings/sysinfo/benchmarkinfo.cpp index 4163fb2..53d4897 100644 --- a/noncore/settings/sysinfo/benchmarkinfo.cpp +++ b/noncore/settings/sysinfo/benchmarkinfo.cpp @@ -150,3 +150,3 @@ BenchmarkInfo::BenchmarkInfo( QWidget *parent, const char *name, int wFlags ) QString machline = ts.readLine(); - odebug << "sysinfo: parsing benchmark results for '" << (const char*) machline << "'" << oendl; + odebug << "sysinfo: parsing benchmark results for '" << machline << "'" << oendl; QString resline = ts.readLine(); |