summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_cors.h
diff options
context:
space:
mode:
authorAdam C. Emerson <aemerson@redhat.com>2017-12-26 22:19:08 +0100
committerAdam C. Emerson <aemerson@redhat.com>2018-01-10 20:03:35 +0100
commitfb264d77adac986a72775f08c0cab8857aed9d9f (patch)
tree99ba78440aff6ff20c965d593679e07d4e1400d3 /src/rgw/rgw_cors.h
parentrbd_replay: Use unqualified encode/decode (diff)
downloadceph-fb264d77adac986a72775f08c0cab8857aed9d9f.tar.xz
ceph-fb264d77adac986a72775f08c0cab8857aed9d9f.zip
rgw: Use unqualified encode/decode
This is a portion of Part 1 of the namespace project: using ADL properly in encode and decode so we can use namespaces easily in Ceph. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
Diffstat (limited to 'src/rgw/rgw_cors.h')
-rw-r--r--src/rgw/rgw_cors.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/rgw/rgw_cors.h b/src/rgw/rgw_cors.h
index 61b352dae57..b525ddcd0d8 100644
--- a/src/rgw/rgw_cors.h
+++ b/src/rgw/rgw_cors.h
@@ -62,22 +62,22 @@ public:
void encode(bufferlist& bl) const {
ENCODE_START(1, 1, bl);
- ::encode(max_age, bl);
- ::encode(allowed_methods, bl);
- ::encode(id, bl);
- ::encode(allowed_hdrs, bl);
- ::encode(allowed_origins, bl);
- ::encode(exposable_hdrs, bl);
+ encode(max_age, bl);
+ encode(allowed_methods, bl);
+ encode(id, bl);
+ encode(allowed_hdrs, bl);
+ encode(allowed_origins, bl);
+ encode(exposable_hdrs, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator& bl) {
DECODE_START(1, bl);
- ::decode(max_age, bl);
- ::decode(allowed_methods, bl);
- ::decode(id, bl);
- ::decode(allowed_hdrs, bl);
- ::decode(allowed_origins, bl);
- ::decode(exposable_hdrs, bl);
+ decode(max_age, bl);
+ decode(allowed_methods, bl);
+ decode(id, bl);
+ decode(allowed_hdrs, bl);
+ decode(allowed_origins, bl);
+ decode(exposable_hdrs, bl);
DECODE_FINISH(bl);
}
bool has_wildcard_origin();
@@ -100,12 +100,12 @@ class RGWCORSConfiguration
void encode(bufferlist& bl) const {
ENCODE_START(1, 1, bl);
- ::encode(rules, bl);
+ encode(rules, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::iterator& bl) {
DECODE_START(1, bl);
- ::decode(rules, bl);
+ decode(rules, bl);
DECODE_FINISH(bl);
}
void dump(Formatter *f) const;