diff options
| author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
|---|---|---|
| committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2016-04-10 09:28:39 +0000 |
| commit | 32761a6cee1d0dee366b885b7b9c777e67885688 (patch) | |
| tree | d6bec92bebfb216f4126356e55518842c2f476a1 /Source/WebCore/Modules/webdatabase/ChangeVersionWrapper.h | |
| parent | a4e969f4965059196ca948db781e52f7cfebf19e (diff) | |
| download | WebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz | |
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Source/WebCore/Modules/webdatabase/ChangeVersionWrapper.h')
| -rw-r--r-- | Source/WebCore/Modules/webdatabase/ChangeVersionWrapper.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/WebCore/Modules/webdatabase/ChangeVersionWrapper.h b/Source/WebCore/Modules/webdatabase/ChangeVersionWrapper.h index eec31f25c..3b1a2a058 100644 --- a/Source/WebCore/Modules/webdatabase/ChangeVersionWrapper.h +++ b/Source/WebCore/Modules/webdatabase/ChangeVersionWrapper.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 Inc. ("Apple") nor the names of + * 3. Neither the name of Apple Computer, 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. * @@ -28,6 +28,8 @@ #ifndef ChangeVersionWrapper_h #define ChangeVersionWrapper_h +#if ENABLE(SQL_DATABASE) + #include "SQLTransactionBackend.h" #include <wtf/Forward.h> @@ -37,7 +39,7 @@ class SQLError; class ChangeVersionWrapper : public SQLTransactionWrapper { public: - static Ref<ChangeVersionWrapper> create(const String& oldVersion, const String& newVersion) { return adoptRef(*new ChangeVersionWrapper(oldVersion, newVersion)); } + static PassRefPtr<ChangeVersionWrapper> create(const String& oldVersion, const String& newVersion) { return adoptRef(new ChangeVersionWrapper(oldVersion, newVersion)); } virtual bool performPreflight(SQLTransactionBackend*); virtual bool performPostflight(SQLTransactionBackend*); @@ -54,4 +56,6 @@ private: } // namespace WebCore +#endif + #endif // ChangeVersionWrapper_h |
