diff options
Diffstat (limited to 'connectivity/source/drivers/macab')
4 files changed, 6 insertions, 4 deletions
diff --git a/connectivity/source/drivers/macab/MacabHeader.cxx b/connectivity/source/drivers/macab/MacabHeader.cxx index c8b28853feff..5393d9247dd0 100644 --- a/connectivity/source/drivers/macab/MacabHeader.cxx +++ b/connectivity/source/drivers/macab/MacabHeader.cxx @@ -306,10 +306,11 @@ MacabHeader::iterator::~iterator () { } -void MacabHeader::iterator::operator= (MacabHeader *_record) +MacabHeader::iterator& MacabHeader::iterator::operator= (MacabHeader *_record) { id = 0; record = _record; + return *this; } // ------------------------------------------------------------------------- diff --git a/connectivity/source/drivers/macab/MacabHeader.hxx b/connectivity/source/drivers/macab/MacabHeader.hxx index 05c381928ce4..c2ca8d7a69d1 100644 --- a/connectivity/source/drivers/macab/MacabHeader.hxx +++ b/connectivity/source/drivers/macab/MacabHeader.hxx @@ -57,7 +57,7 @@ namespace connectivity sal_Int32 id; MacabHeader *record; public: - void operator= (MacabHeader *_record); + iterator& operator= (MacabHeader *_record); iterator(); ~iterator(); void operator++ (); diff --git a/connectivity/source/drivers/macab/MacabRecords.cxx b/connectivity/source/drivers/macab/MacabRecords.cxx index 85563a84c25f..93cbca5b79f6 100644 --- a/connectivity/source/drivers/macab/MacabRecords.cxx +++ b/connectivity/source/drivers/macab/MacabRecords.cxx @@ -1154,10 +1154,11 @@ MacabRecords::iterator::~iterator () } // ------------------------------------------------------------------------- -void MacabRecords::iterator::operator= (MacabRecords *_records) +MacabRecords::iterator& MacabRecords::iterator::operator= (MacabRecords *_records) { id = 0; records = _records; + return *this; } // ------------------------------------------------------------------------- diff --git a/connectivity/source/drivers/macab/MacabRecords.hxx b/connectivity/source/drivers/macab/MacabRecords.hxx index 80c87ee7d40a..ff01bbc16227 100644 --- a/connectivity/source/drivers/macab/MacabRecords.hxx +++ b/connectivity/source/drivers/macab/MacabRecords.hxx @@ -121,7 +121,7 @@ namespace connectivity MacabRecords *records; public: sal_Int32 id; - void operator= (MacabRecords *_records); + iterator& operator= (MacabRecords *_records); iterator(); ~iterator(); void operator++ (); |