GCC 4.7 fixes.

Thanks to Francois Andriot.
(cherry picked from commit ae1ac3851e)
v3.5.13-sru
Darrell Anderson 13 years ago committed by Slávek Banko
parent 48b2c9de90
commit 2d30adc920

@ -43,7 +43,7 @@ class GenericRangeVector : public TQValueVector<RangeType>
{
public:
GenericRangeVector() {}
GenericRangeVector(const RangeType &range) { append(range); }
GenericRangeVector(const RangeType &range) { this->append(range); }
bool isEmpty() const {
uint nb = this->count();
for (uint i=0; i<nb; i++) if ( !this->at(i).isEmpty() ) return false;

@ -52,7 +52,7 @@ class Group : public GroupBase, public DataStreamer<DataType>
{
protected:
virtual void initSupported() {
TQValueList<DataType *> list = fromCppString(dataStream(), dataSize());
TQValueList<DataType *> list = this->fromCppString(dataStream(), dataSize());
for (uint i=0; i<uint(list.count()); i++) addDevice(list[i]->name(), list[i], ::Group::Support::Tested);
}
virtual uint dataSize() const = 0;

@ -76,7 +76,7 @@ public:
TQValueList<DataType *> list;
for (it=_map.begin(); it!=_map.end(); ++it)
list.append(const_cast<DataType *>(static_cast<const DataType *>(it.data())));
uint size = toCppString(list, ts);
uint size = this->toCppString(list, ts);
ts << ";" << endl;
ts << "const uint " << namespaceName() << "::DATA_SIZE = " << size << ";" << endl;
file.close();

Loading…
Cancel
Save