diff options
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 |