summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/ExceptionBase.cpp
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
commit1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch)
tree4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/dom/ExceptionBase.cpp
parent9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff)
downloadexternal_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/dom/ExceptionBase.cpp')
-rw-r--r--WebCore/dom/ExceptionBase.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/WebCore/dom/ExceptionBase.cpp b/WebCore/dom/ExceptionBase.cpp
index 92a14f5..c73d514 100644
--- a/WebCore/dom/ExceptionBase.cpp
+++ b/WebCore/dom/ExceptionBase.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2007 Apple Inc. All rights reserved.
+ * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -32,12 +32,12 @@
namespace WebCore {
ExceptionBase::ExceptionBase(const ExceptionCodeDescription& description)
+ : m_code(description.code)
+ , m_name(description.name)
{
- m_code = description.code;
- if (description.name) {
- m_name = description.name;
+ if (description.name)
m_message = String::format("%s: %s Exception %d", description.name, description.typeName, description.code);
- } else
+ else
m_message = String::format("%s Exception %d", description.typeName, description.code);
}