summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/macab
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-02-18 20:32:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-02-18 21:00:40 +0000
commitf73b7f2c434a2d553ad21f582ccb2fa93c61e41d (patch)
tree52a1958bfbc44e53b288961a50187407ec266059 /connectivity/source/drivers/macab
parent55bc287b63bc70e7ffe2defabd65e1ce8be0d7fe (diff)
cppcheck: better formed operator=
Diffstat (limited to 'connectivity/source/drivers/macab')
-rw-r--r--connectivity/source/drivers/macab/MacabHeader.cxx3
-rw-r--r--connectivity/source/drivers/macab/MacabHeader.hxx2
-rw-r--r--connectivity/source/drivers/macab/MacabRecords.cxx3
-rw-r--r--connectivity/source/drivers/macab/MacabRecords.hxx2
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++ ();