]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
encoding.h: need to pass by reference
authorSamuel Just <samuel.just@dreamhost.com>
Wed, 6 Jul 2011 18:22:34 +0000 (11:22 -0700)
committerSamuel Just <samuel.just@dreamhost.com>
Wed, 13 Jul 2011 22:12:31 +0000 (15:12 -0700)
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/include/encoding.h

index f9e35145391e73938d10c1c64ffc16d498951665..8741fb4eb8ec194555176822528fda4e50a41638 100644 (file)
@@ -206,7 +206,7 @@ inline void decode_nohead(int len, bufferlist& s, bufferlist::iterator& p)
 
 // full bl decoder
 template<class T>
-inline void decode(T o, bufferlist& bl)
+inline void decode(T &o, bufferlist& bl)
 {
   bufferlist::iterator p = bl.begin();
   decode(o, p);