diff options
Diffstat (limited to 'WebCore/storage/IDBAny.h')
-rw-r--r-- | WebCore/storage/IDBAny.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/WebCore/storage/IDBAny.h b/WebCore/storage/IDBAny.h index ff2d6b9..77bba7c 100644 --- a/WebCore/storage/IDBAny.h +++ b/WebCore/storage/IDBAny.h @@ -44,6 +44,13 @@ class SerializedScriptValue; class IDBAny : public RefCounted<IDBAny> { public: static PassRefPtr<IDBAny> create(); + template<typename T> + static PassRefPtr<IDBAny> create(T* idbObject) + { + RefPtr<IDBAny> any = IDBAny::create(); + any->set(idbObject); + return any.release(); + } ~IDBAny(); enum Type { |