From e36d4dad0677694d1e5503dbd6eada2c9b6def0e Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Sun, 8 Aug 2010 11:33:15 +0000 Subject: [PATCH] Cast error to status_t when throwing, otherwise it won't be caught. CID 1962 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37969 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/translators/rtf/RTF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/translators/rtf/RTF.cpp b/src/add-ons/translators/rtf/RTF.cpp index 91a386935c..a1fe3eed1b 100644 --- a/src/add-ons/translators/rtf/RTF.cpp +++ b/src/add-ons/translators/rtf/RTF.cpp @@ -205,7 +205,7 @@ Parser::Parse(Header &header) if (openBrackets == 0) return B_OK; - throw B_ERROR; + throw (status_t)B_ERROR; } continue; }