summaryrefslogtreecommitdiff
authorzecke <zecke>2004-05-18 20:57:35 (UTC)
committer zecke <zecke>2004-05-18 20:57:35 (UTC)
commit59c6451a16405f19b1d4bc97906bd5778b5b0cd3 (patch) (side-by-side diff)
tree325a5e496a03304a99f224fa258b0cd2dabf2db9
parenteb5a5432d79083fdfefb7b9b0c0907abe8807a52 (diff)
downloadopie-59c6451a16405f19b1d4bc97906bd5778b5b0cd3.zip
opie-59c6451a16405f19b1d4bc97906bd5778b5b0cd3.tar.gz
opie-59c6451a16405f19b1d4bc97906bd5778b5b0cd3.tar.bz2
Aye no (const char*)str where type(str) == QString please...
Now I can even scan non latin access points and don't need to reset stdout/stderr
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/scanlist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/net/wellenreiter/gui/scanlist.cpp b/noncore/net/wellenreiter/gui/scanlist.cpp
index 9e8aa72..9e907d8 100644
--- a/noncore/net/wellenreiter/gui/scanlist.cpp
+++ b/noncore/net/wellenreiter/gui/scanlist.cpp
@@ -108,50 +108,50 @@ void MScanListView::serializeTo( QDataStream& s) const
odebug << "serializing MScanListView" << oendl;
OListView::serializeTo( s );
}
void MScanListView::serializeFrom( QDataStream& s)
{
odebug << "serializing MScanListView" << oendl;
OListView::serializeFrom( s );
}
void MScanListView::addNewItem( const QString& type,
const QString& essid,
const OMacAddress& mac,
bool wep,
int channel,
int signal,
const GpsLocation& loc,
bool probe )
{
QString macaddr = mac.toString(true);
#ifdef DEBUG
- odebug << "MScanList::addNewItem( " << (const char*) type << " / "
- << (const char*) essid << " / " << (const char*) macaddr
+ odebug << "MScanList::addNewItem( " << type << " / "
+ << essid << " / " << macaddr
<< " [" << channel << "]" << oendl;
#endif
// search, if we already have seen this net
QString s;
MScanListItem* network;
MScanListItem* item = static_cast<MScanListItem*> ( firstChild() );
while ( item && ( item->text( col_essid ) != essid ) )
{
#ifdef DEBUG
odebug << "itemtext: " << item->text( col_essid ) << "" << oendl;
#endif
item = static_cast<MScanListItem*> ( item->nextSibling() );
}
if ( item )
{
// we have already seen this net, check all childs if MAC exists
network = item;
item = static_cast<MScanListItem*> ( item->firstChild() );
assert( item ); // this shouldn't fail