diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-01-08 12:02:26 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-01-08 12:02:26 -0500 |
commit | 4926cabd74150bf3887ea913209ec2020b4b745b (patch) | |
tree | 98f5da11e99c36f3a8d1f163998d9d15f14bfeeb /sigmod/Store.cpp | |
parent | 148635c10b580ce014c6d49908d9dcdb4182266e (diff) | |
download | sigen-4926cabd74150bf3887ea913209ec2020b4b745b.tar.gz sigen-4926cabd74150bf3887ea913209ec2020b4b745b.tar.xz sigen-4926cabd74150bf3887ea913209ec2020b4b745b.zip |
Fixed Store to clear list when loaded/assigned to
Diffstat (limited to 'sigmod/Store.cpp')
-rw-r--r-- | sigmod/Store.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sigmod/Store.cpp b/sigmod/Store.cpp index a7c9a85f..1e6a353e 100644 --- a/sigmod/Store.cpp +++ b/sigmod/Store.cpp @@ -87,7 +87,13 @@ Sigmod::Store& Sigmod::Store::operator=(const Store& rhs) { if (this == &rhs) return *this; + clear(); COPY(name); COPY(item); return *this; } + +void Sigmod::Store::clear() +{ + m_item.clear(); +} |