aboutsummaryrefslogtreecommitdiff
path: root/src/stable
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-12-21 00:06:20 +0000
committerMike Buland <eichlan@xagasoft.com>2012-12-21 00:06:20 +0000
commit8642fe0ba100dee5a66265b07e21e043887a4a92 (patch)
tree25a0a32061a53d730d4af102c26e858b9a5344f4 /src/stable
parent6af2989d3abbe9ff64631df33f9f9e135274d90c (diff)
downloadlibbu++-8642fe0ba100dee5a66265b07e21e043887a4a92.tar.gz
libbu++-8642fe0ba100dee5a66265b07e21e043887a4a92.tar.bz2
libbu++-8642fe0ba100dee5a66265b07e21e043887a4a92.tar.xz
libbu++-8642fe0ba100dee5a66265b07e21e043887a4a92.zip
Signals (slots really) are now comperable. Building two slots for the same
function or same object and method will compare as expected. Also added a -= function to Bu::List which works just like erase.
Diffstat (limited to '')
-rw-r--r--src/stable/archive.h2
-rw-r--r--src/stable/list.h5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/stable/archive.h b/src/stable/archive.h
index f98402d..5c3a055 100644
--- a/src/stable/archive.h
+++ b/src/stable/archive.h
@@ -129,7 +129,7 @@ namespace Bu
129 private: 129 private:
130 Stream &rStream; 130 Stream &rStream;
131 uint32_t nNextID; 131 uint32_t nNextID;
132 Hash<uint32_t,uint32_t> hPtrID; 132 Hash<uint32_t,ptrdiff_t> hPtrID;
133 Hash<uint32_t,List<void **> > hPtrDest; 133 Hash<uint32_t,List<void **> > hPtrDest;
134 Hash<Bu::String, Variant> hProps; 134 Hash<Bu::String, Variant> hProps;
135 }; 135 };
diff --git a/src/stable/list.h b/src/stable/list.h
index b7fb1d1..0b6329c 100644
--- a/src/stable/list.h
+++ b/src/stable/list.h
@@ -250,6 +250,11 @@ namespace Bu
250 return *this; 250 return *this;
251 } 251 }
252 252
253 MyType &operator-=( const value &v )
254 {
255 return erase( v );
256 }
257
253 MyType &operator+=( const MyType &src ) 258 MyType &operator+=( const MyType &src )
254 { 259 {
255 _hardCopy(); 260 _hardCopy();