summaryrefslogtreecommitdiff
path: root/Source/WebCore/fileapi/FileException.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/fileapi/FileException.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
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