summaryrefslogtreecommitdiffstats
path: root/generator/abstractmetalang.cpp
diff options
context:
space:
mode:
authorMike Arthur <mike@kdab.net>2010-03-19 12:20:23 +0100
committerKent Hansen <kent.hansen@nokia.com>2010-03-19 12:20:23 +0100
commitfa393b2f059caf9e44f0b2e02128112b13b33d0b (patch)
tree97b1a4739ad4265e927e5d5e49d8aa6fe1a776e3 /generator/abstractmetalang.cpp
parent0bc6b7c2547b618969f276eedcf6da6d772d9ab3 (diff)
Add support for throwing exceptions through the bindings to allow compilation
of code that already uses exceptions. Merge-request: 1853 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'generator/abstractmetalang.cpp')
-rw-r--r--generator/abstractmetalang.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/generator/abstractmetalang.cpp b/generator/abstractmetalang.cpp
index 1b18a12..463227d 100644
--- a/generator/abstractmetalang.cpp
+++ b/generator/abstractmetalang.cpp
@@ -313,6 +313,7 @@ AbstractMetaFunction *AbstractMetaFunction::copy() const
if (type())
cpy->setType(type()->copy());
cpy->setConstant(isConstant());
+ cpy->setException(exception());
cpy->setOriginalAttributes(originalAttributes());
foreach (AbstractMetaArgument *arg, arguments())