summaryrefslogtreecommitdiff
path: root/Source/WebKit2/Shared/WebNumber.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/Shared/WebNumber.h')
-rw-r--r--Source/WebKit2/Shared/WebNumber.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/WebKit2/Shared/WebNumber.h b/Source/WebKit2/Shared/WebNumber.h
index 0b092ef85..f9507c90b 100644
--- a/Source/WebKit2/Shared/WebNumber.h
+++ b/Source/WebKit2/Shared/WebNumber.h
@@ -32,10 +32,8 @@
namespace WebKit {
template<typename NumberType, APIObject::Type APIObjectType>
-class WebNumber : public APIObject {
+class WebNumber : public TypedAPIObject<APIObjectType> {
public:
- static const Type APIType = APIObjectType;
-
static PassRefPtr<WebNumber> create(NumberType value)
{
return adoptRef(new WebNumber(value));
@@ -49,8 +47,6 @@ private:
{
}
- virtual Type type() const { return APIType; }
-
const NumberType m_value;
};