-rw-r--r-- | include/opkele/types.h | 1 | ||||
-rw-r--r-- | lib/openid_message.cc | 9 |
2 files changed, 7 insertions, 3 deletions
diff --git a/include/opkele/types.h b/include/opkele/types.h index af7fb1a..ffb9afb 100644 --- a/include/opkele/types.h +++ b/include/opkele/types.h | |||
@@ -131,2 +131,3 @@ namespace opkele { | |||
131 | void copy_to(basic_openid_message& x) const; | 131 | void copy_to(basic_openid_message& x) const; |
132 | void append_to(basic_openid_message& x) const; | ||
132 | 133 | ||
diff --git a/lib/openid_message.cc b/lib/openid_message.cc index 4b9179b..e244f43 100644 --- a/lib/openid_message.cc +++ b/lib/openid_message.cc | |||
@@ -18,5 +18,3 @@ namespace opkele { | |||
18 | __om_copier(basic_openid_message& t,const basic_openid_message& f) | 18 | __om_copier(basic_openid_message& t,const basic_openid_message& f) |
19 | : from(f), to(t) { | 19 | : from(f), to(t) { } |
20 | to.reset_fields(); | ||
21 | } | ||
22 | 20 | ||
@@ -30,2 +28,7 @@ namespace opkele { | |||
30 | void basic_openid_message::copy_to(basic_openid_message& x) const { | 28 | void basic_openid_message::copy_to(basic_openid_message& x) const { |
29 | x.reset_fields(); | ||
30 | for_each(fields_begin(),fields_end(), | ||
31 | __om_copier(x,*this) ); | ||
32 | } | ||
33 | void basic_openid_message::append_to(basic_openid_message& x) const { | ||
31 | for_each(fields_begin(),fields_end(), | 34 | for_each(fields_begin(),fields_end(), |