diff options
| author | jhurst <jhurst@cinecert.com> | 2006-05-25 17:53:50 +0000 |
|---|---|---|
| committer | jhurst <> | 2006-05-25 17:53:50 +0000 |
| commit | 04591a0dae1919f7ec3d740173b55dfad742fba6 (patch) | |
| tree | 0454d06dbca6b2cc840e3696e0dfea5077b516ad /src | |
| parent | dd006745de5ad9a11b1d200ac2e44a3c822033bf (diff) | |
fixed Identifier copy constructor -- wasn't playing well with std::map
Diffstat (limited to 'src')
| -rwxr-xr-x | src/KM_util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KM_util.h b/src/KM_util.h index 0d37370..344cfd1 100755 --- a/src/KM_util.h +++ b/src/KM_util.h @@ -177,8 +177,8 @@ namespace Kumu Identifier() : m_HasValue(false) { memset(m_Value, 0, SIZE); } Identifier(const byte_t* value) : m_HasValue(true) { memcpy(m_Value, value, SIZE); } Identifier(const Identifier& rhs) { - if ( m_HasValue = rhs.m_HasValue ) - memcpy(m_Value, rhs.m_Value, SIZE); + m_HasValue = rhs.m_HasValue; + memcpy(m_Value, rhs.m_Value, SIZE); } virtual ~Identifier() {} |
