summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/pwmdoc.h
authorulf69 <ulf69>2004-10-19 00:49:09 (UTC)
committer ulf69 <ulf69>2004-10-19 00:49:09 (UTC)
commitda724334d46c01ee9d4f04101dab5d048c35c833 (patch) (side-by-side diff)
tree5169852bd5e26992c9d55558dc54cf1b5ee57ae8 /pwmanager/pwmanager/pwmdoc.h
parent9120b7e74bb928a7c148d27abb130990f8977a31 (diff)
downloadkdepimpi-da724334d46c01ee9d4f04101dab5d048c35c833.zip
kdepimpi-da724334d46c01ee9d4f04101dab5d048c35c833.tar.gz
kdepimpi-da724334d46c01ee9d4f04101dab5d048c35c833.tar.bz2
final changes to have syncronisation in place
Diffstat (limited to 'pwmanager/pwmanager/pwmdoc.h') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/pwmdoc.h23
1 files changed, 2 insertions, 21 deletions
diff --git a/pwmanager/pwmanager/pwmdoc.h b/pwmanager/pwmanager/pwmdoc.h
index 6a1dd30..535fb92 100644
--- a/pwmanager/pwmanager/pwmdoc.h
+++ b/pwmanager/pwmanager/pwmdoc.h
@@ -209,9 +209,10 @@ struct PwMDataItem
}
//US ENH: we need this operator to compare two items if we have no unique ids
//available. Generaly this happens before the first sync
+
bool PwMDataItem::operator==( const PwMDataItem &a ) const
{
- qDebug("oper==%s", a.desc.c_str());
+ //qDebug("oper==%s", a.desc.c_str());
if ( desc != a.desc ) return false;
if ( name != a.name ) return false;
if ( pw != a.pw ) return false;
@@ -221,26 +222,6 @@ struct PwMDataItem
//all other field will not be checked.
return true;
}
-
- //US ENH:this operator is used to copy an elements data during syncronization
- //Attention: listViewPos will not be copied. So the position will stay the same.
- PwMDataItem& operator = (const PwMDataItem& x)
- {
- // qDebug("oper=%s", x.desc.c_str());
- desc = x.desc;
- name = x.name;
- pw = x.pw;
- comment = x.comment;
- url = x.url;
- launcher = x.launcher;
- lockStat = x.lockStat;
- //Do not copy listViewPos!!! listViewPos = x.listViewPos;
- binary = x.binary;
- meta = x.meta;
- rev = x.rev;
- return *this;
- }
-
};
struct PwMCategoryItem