aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/stable/archive.h2
-rw-r--r--src/stable/list.h5
-rw-r--r--src/tests/signal.cpp2
3 files changed, 8 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();
diff --git a/src/tests/signal.cpp b/src/tests/signal.cpp
index 93519fa..62e8bd5 100644
--- a/src/tests/signal.cpp
+++ b/src/tests/signal.cpp
@@ -40,6 +40,8 @@ int main()
40 lMaths += slot(Double); 40 lMaths += slot(Double);
41 lMaths += slot(Square); 41 lMaths += slot(Square);
42 println("Math'd %1 = %2").arg( 5 ).arg( lMaths(5) ); 42 println("Math'd %1 = %2").arg( 5 ).arg( lMaths(5) );
43 lMaths -= slot(Square);
44 println("Math'd %1 = %2").arg( 5 ).arg( lMaths(5) );
43 45
44 return 0; 46 return 0;
45} 47}