Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Maintenance - Mise à jour mensuelle Lundi 6 Février entre 7h00 et 9h00
Open sidebar
PAPPSO
xtpcpp
Commits
0ef046ae
Commit
0ef046ae
authored
Nov 09, 2020
by
Langella Olivier
Browse files
fix implicitly declared operator= problem
parent
e88ec6a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/core/peptidematch.cpp
View file @
0ef046ae
...
...
@@ -32,8 +32,7 @@ PeptideMatch::PeptideMatch()
PeptideMatch
::
PeptideMatch
(
const
PeptideMatch
&
other
)
{
_start
=
other
.
_start
;
_p_peptide_evidence
=
other
.
_p_peptide_evidence
;
this
->
operator
=
(
other
);
}
bool
PeptideMatch
::
operator
==
(
const
PeptideMatch
&
other
)
const
...
...
@@ -45,6 +44,17 @@ PeptideMatch::operator==(const PeptideMatch &other) const
}
return
false
;
}
PeptideMatch
&
PeptideMatch
::
operator
=
(
const
PeptideMatch
&
other
)
{
_start
=
other
.
_start
;
_p_peptide_evidence
=
other
.
_p_peptide_evidence
;
return
*
this
;
}
void
PeptideMatch
::
setPeptideEvidenceSp
(
PeptideEvidenceSp
sp_peptide_evidence
)
{
...
...
src/core/peptidematch.h
View file @
0ef046ae
...
...
@@ -22,8 +22,7 @@
*implementation
******************************************************************************/
#ifndef PEPTIDEMATCH_H
#define PEPTIDEMATCH_H
#pragma once
#include
"peptideevidence.h"
...
...
@@ -35,6 +34,8 @@ class PeptideMatch
bool
operator
==
(
const
PeptideMatch
&
other
)
const
;
PeptideMatch
&
operator
=
(
const
PeptideMatch
&
);
/** @brief set start position of this peptide inside the protein sequence
* @param start position in the protein amino acid sequence (starts at 0)
...
...
@@ -66,5 +67,3 @@ class PeptideMatch
unsigned
int
_start
=
0
;
PeptideEvidence
*
_p_peptide_evidence
=
nullptr
;
};
#endif // PEPTIDEMATCH_H
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment