From fdaf36b04ae90c2d9e06ff1e907a369746ce1e2d Mon Sep 17 00:00:00 2001 From: Karl Tomlinson Date: Tue, 18 Feb 2014 09:59:03 +1300 Subject: [PATCH] b=972983 use enum for BaseProxyHandler::Action values r=bholley "inline" const static/class member initialization left missing symbols with gcc 4.7.3 --HG-- extra : rebase_source : 9e119ae9946e893b6113b838d49ab6384b472a99 --- js/src/jsproxy.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/js/src/jsproxy.h b/js/src/jsproxy.h index ad8f7745141c..7743f1d5f645 100644 --- a/js/src/jsproxy.h +++ b/js/src/jsproxy.h @@ -146,11 +146,13 @@ class JS_FRIEND_API(BaseProxyHandler) * assertEnteredPolicy would pass GET | SET. */ typedef uint32_t Action; - static const Action NONE = 0x00; - static const Action GET = 0x01; - static const Action SET = 0x02; - static const Action CALL = 0x04; - static const Action ENUMERATE = 0x08; + enum { + NONE = 0x00, + GET = 0x01, + SET = 0x02, + CALL = 0x04, + ENUMERATE = 0x08 + }; virtual bool enter(JSContext *cx, HandleObject wrapper, HandleId id, Action act, bool *bp);