OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 24 matching lines...) Expand all Loading... |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 void WebIDBKeyRange::assign(const WebIDBKeyRange& other) | 37 void WebIDBKeyRange::assign(const WebIDBKeyRange& other) |
38 { | 38 { |
39 m_private = other.m_private; | 39 m_private = other.m_private; |
40 } | 40 } |
41 | 41 |
42 void WebIDBKeyRange::assign(const WebIDBKey& lower, const WebIDBKey& upper, bool
lowerOpen, bool upperOpen) | 42 void WebIDBKeyRange::assign(const WebIDBKey& lower, const WebIDBKey& upper, bool
lowerOpen, bool upperOpen) |
43 { | 43 { |
44 if (!lower.isValid() && !upper.isValid()) | 44 if (!lower.isValid() && !upper.isValid()) |
45 m_private = 0; | 45 m_private = nullptr; |
46 else | 46 else |
47 m_private = IDBKeyRange::create(lower, upper, lowerOpen ? IDBKeyRange::L
owerBoundOpen : IDBKeyRange::LowerBoundClosed, upperOpen ? IDBKeyRange::UpperBou
ndOpen : IDBKeyRange::UpperBoundClosed); | 47 m_private = IDBKeyRange::create(lower, upper, lowerOpen ? IDBKeyRange::L
owerBoundOpen : IDBKeyRange::LowerBoundClosed, upperOpen ? IDBKeyRange::UpperBou
ndOpen : IDBKeyRange::UpperBoundClosed); |
48 } | 48 } |
49 | 49 |
50 void WebIDBKeyRange::reset() | 50 void WebIDBKeyRange::reset() |
51 { | 51 { |
52 m_private.reset(); | 52 m_private.reset(); |
53 } | 53 } |
54 | 54 |
55 WebIDBKey WebIDBKeyRange::lower() const | 55 WebIDBKey WebIDBKeyRange::lower() const |
(...skipping 30 matching lines...) Expand all Loading... |
86 m_private = value; | 86 m_private = value; |
87 return *this; | 87 return *this; |
88 } | 88 } |
89 | 89 |
90 WebIDBKeyRange::operator PassRefPtr<IDBKeyRange>() const | 90 WebIDBKeyRange::operator PassRefPtr<IDBKeyRange>() const |
91 { | 91 { |
92 return m_private.get(); | 92 return m_private.get(); |
93 } | 93 } |
94 | 94 |
95 } // namespace blink | 95 } // namespace blink |
OLD | NEW |