summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/manufacturers.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/wellenreiter/gui/manufacturers.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/manufacturers.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/manufacturers.cpp b/noncore/net/wellenreiter/gui/manufacturers.cpp
index d235989..dad2753 100644
--- a/noncore/net/wellenreiter/gui/manufacturers.cpp
+++ b/noncore/net/wellenreiter/gui/manufacturers.cpp
@@ -40,7 +40,9 @@ ManufacturerDB::ManufacturerDB( const QString& filename )
s >> addr;
s.skipWhiteSpace();
manu = s.readLine();
+ #ifdef DEBUG
qDebug( "ManufacturerDB: read pair %s, %s", (const char*) addr, (const char*) manu );
+ #endif
manufacturers.insert( addr, manu );
}
@@ -52,7 +54,7 @@ ManufacturerDB::~ManufacturerDB()
{
}
-QString ManufacturerDB::lookup( const QString& macaddr )
+const QString& ManufacturerDB::lookup( const QString& macaddr ) const
{
return manufacturers[macaddr.upper().left(8)];
}