[haiku-commits] r37969 - haiku/trunk/src/add-ons/translators/rtf

  • From: stefano.ceccherini@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 8 Aug 2010 13:33:16 +0200 (CEST)

Author: jackburton
Date: 2010-08-08 13:33:15 +0200 (Sun, 08 Aug 2010)
New Revision: 37969
Changeset: http://dev.haiku-os.org/changeset/37969

Modified:
   haiku/trunk/src/add-ons/translators/rtf/RTF.cpp
Log:
Cast error to status_t when throwing, otherwise it won't be caught.
CID 1962


Modified: haiku/trunk/src/add-ons/translators/rtf/RTF.cpp
===================================================================
--- haiku/trunk/src/add-ons/translators/rtf/RTF.cpp     2010-08-08 10:12:16 UTC 
(rev 37968)
+++ haiku/trunk/src/add-ons/translators/rtf/RTF.cpp     2010-08-08 11:33:15 UTC 
(rev 37969)
@@ -205,7 +205,7 @@
                                                if (openBrackets == 0)
                                                        return B_OK;
 
-                                               throw B_ERROR;
+                                               throw (status_t)B_ERROR;
                                        }
                                        continue;
                                }


Other related posts:

  • » [haiku-commits] r37969 - haiku/trunk/src/add-ons/translators/rtf - stefano . ceccherini