mbahar94 / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

bytesAvailable incorrectly overloaded #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Do a 

1. QIODevice * dev = new QExtSerialPort();
2. dev->bytesAvailable();

only the QIODevice's bytesAvailable will be called since QExtSerialPort:
    virtual qint64 bytesAvailable();
vs. QIODevice:
    virtual qint64 bytesAvailable() const;

Saw this in v1.0 with VisualC++ but should exist in other versions and 
with other compilers as well.

Regards, Ulrich

Original issue reported on code.google.com by ulrich.h...@gmail.com on 23 Feb 2010 at 9:28

GoogleCodeExporter commented 9 years ago
Sounds like you must be looking at an old version.  The version in hg tip is 
const: 
http://code.google.com/p/qextserialport/source/browse/src/qextserialport.h#253

Original comment by lst...@gmail.com on 10 Mar 2010 at 7:44