Diffstat (limited to 'noncore/net/wellenreiter/gui/manufacturers.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/manufacturers.cpp | 4 |
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 ) | |||
40 | s >> addr; | 40 | s >> addr; |
41 | s.skipWhiteSpace(); | 41 | s.skipWhiteSpace(); |
42 | manu = s.readLine(); | 42 | manu = s.readLine(); |
43 | #ifdef DEBUG | ||
43 | qDebug( "ManufacturerDB: read pair %s, %s", (const char*) addr, (const char*) manu ); | 44 | qDebug( "ManufacturerDB: read pair %s, %s", (const char*) addr, (const char*) manu ); |
45 | #endif | ||
44 | manufacturers.insert( addr, manu ); | 46 | manufacturers.insert( addr, manu ); |
45 | 47 | ||
46 | } | 48 | } |
@@ -52,7 +54,7 @@ ManufacturerDB::~ManufacturerDB() | |||
52 | { | 54 | { |
53 | } | 55 | } |
54 | 56 | ||
55 | QString ManufacturerDB::lookup( const QString& macaddr ) | 57 | const QString& ManufacturerDB::lookup( const QString& macaddr ) const |
56 | { | 58 | { |
57 | return manufacturers[macaddr.upper().left(8)]; | 59 | return manufacturers[macaddr.upper().left(8)]; |
58 | } | 60 | } |