summaryrefslogtreecommitdiff
path: root/Source/WebCore/Modules/indexeddb/IDBRecordIdentifier.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/Modules/indexeddb/IDBRecordIdentifier.h')
-rw-r--r--Source/WebCore/Modules/indexeddb/IDBRecordIdentifier.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/Source/WebCore/Modules/indexeddb/IDBRecordIdentifier.h b/Source/WebCore/Modules/indexeddb/IDBRecordIdentifier.h
index 7ca7783e7..e80d593a1 100644
--- a/Source/WebCore/Modules/indexeddb/IDBRecordIdentifier.h
+++ b/Source/WebCore/Modules/indexeddb/IDBRecordIdentifier.h
@@ -10,7 +10,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
+ * 3. Neither the name of Apple Inc. ("Apple") nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
@@ -25,8 +25,8 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef IDBRecordIdentifier_h
-#define IDBRecordIdentifier_h
+
+#pragma once
#include <wtf/RefCounted.h>
#include <wtf/Vector.h>
@@ -37,14 +37,14 @@ namespace WebCore {
class IDBRecordIdentifier : public RefCounted<IDBRecordIdentifier> {
public:
- static PassRefPtr<IDBRecordIdentifier> create(const Vector<char>& encodedPrimaryKey, int64_t version)
+ static Ref<IDBRecordIdentifier> create(const Vector<char>& encodedPrimaryKey, int64_t version)
{
- return adoptRef(new IDBRecordIdentifier(encodedPrimaryKey, version));
+ return adoptRef(*new IDBRecordIdentifier(encodedPrimaryKey, version));
}
- static PassRefPtr<IDBRecordIdentifier> create()
+ static Ref<IDBRecordIdentifier> create()
{
- return adoptRef(new IDBRecordIdentifier);
+ return adoptRef(*new IDBRecordIdentifier);
}
const Vector<char>& encodedPrimaryKey() const { return m_encodedPrimaryKey; }
@@ -74,6 +74,4 @@ private:
} // namespace WebCore
-#endif
-
-#endif // IDBRecordIdentifier_h
+#endif // ENABLE(INDEXED_DATABASE)