summaryrefslogtreecommitdiff
path: root/Source/WebCore/fileapi/FileException.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/fileapi/FileException.h')
-rw-r--r--Source/WebCore/fileapi/FileException.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/Source/WebCore/fileapi/FileException.h b/Source/WebCore/fileapi/FileException.h
index ccf7982df..dc2d15b9a 100644
--- a/Source/WebCore/fileapi/FileException.h
+++ b/Source/WebCore/fileapi/FileException.h
@@ -28,10 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef FileException_h
-#define FileException_h
-
-#if ENABLE(BLOB)
+#pragma once
#include "ExceptionBase.h"
@@ -39,9 +36,9 @@ namespace WebCore {
class FileException : public ExceptionBase {
public:
- static PassRefPtr<FileException> create(const ExceptionCodeDescription& description)
+ static Ref<FileException> create(const ExceptionCodeDescription& description)
{
- return adoptRef(new FileException(description));
+ return adoptRef(*new FileException(description));
}
static const int FileExceptionOffset = 1100;
@@ -79,7 +76,3 @@ private:
};
} // namespace WebCore
-
-#endif // ENABLE(BLOB)
-
-#endif // FileException_h