summaryrefslogtreecommitdiff
path: root/connectivity
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
commitc535169929b6671ddbda88301c19c2210ec795cf (patch)
tree5ad7776d574f87bc13306f78cac40becd37b7829 /connectivity
parent7e13cdebc053f219751a5d7f51065bf3bcb13490 (diff)
cppcheck: better formed operator=
Diffstat (limited to 'connectivity')
-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 11519522d6..39fb28c62c 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 b0dc2820e6..f24b593a9b 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 9e005d38e2..ec82ba5594 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 dfd6cb8429..0ac946b5c0 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++ ();