diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/fileapi/FileError.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/fileapi/FileError.h')
-rw-r--r-- | Source/WebCore/fileapi/FileError.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Source/WebCore/fileapi/FileError.h b/Source/WebCore/fileapi/FileError.h index 7678a5154..5bc57aa9a 100644 --- a/Source/WebCore/fileapi/FileError.h +++ b/Source/WebCore/fileapi/FileError.h @@ -28,12 +28,9 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef FileError_h -#define FileError_h +#pragma once -#if ENABLE(BLOB) - -#include <wtf/PassRefPtr.h> +#include <wtf/Ref.h> #include <wtf/RefCounted.h> namespace WebCore { @@ -56,7 +53,7 @@ public: PATH_EXISTS_ERR = 12, }; - static PassRefPtr<FileError> create(ErrorCode code) { return adoptRef(new FileError(code)); } + static Ref<FileError> create(ErrorCode code) { return adoptRef(*new FileError(code)); } ErrorCode code() const { return m_code; } @@ -69,7 +66,3 @@ private: }; } // namespace WebCore - -#endif // ENABLE(BLOB) - -#endif // FileError_h |