[haiku-commits] haiku: hrev43348 - src/kits/tracker

  • From: stpere@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 27 Nov 2011 23:48:23 +0100 (CET)

hrev43348 adds 1 changeset to branch 'master'
old head: ef9c898bbafc021cbc9a8601455789fa4a29c7ca
new head: ec9e2f901890930af72f12dcd9fb079e60d0cdba

----------------------------------------------------------------------------

1 files changed, 2 insertions(+), 2 deletions(-)
src/kits/tracker/Utilities.h |    4 ++--

############################################################################

Revision:    hrev43348
Commit:      ec9e2f901890930af72f12dcd9fb079e60d0cdba
URL:         http://cgit.haiku-os.org/haiku/commit/?id=ec9e2f9
Author:      Philippe Saint-Pierre <stpere@xxxxxxxxx>
Date:        Sun Nov 27 22:39:51 2011 UTC

No functional change, avoid confusion in Coverity about exceptions

CID 9248, CID 9250, CID 10844, CID 10977, CID 10978, CID 10979, CID 10980,
CID 10981, CID 10982, CID 10983

----------------------------------------------------------------------------

diff --git a/src/kits/tracker/Utilities.h b/src/kits/tracker/Utilities.h
index dbef772..564efb5 100644
--- a/src/kits/tracker/Utilities.h
+++ b/src/kits/tracker/Utilities.h
@@ -502,10 +502,10 @@ void
 ThrowOnInitCheckError(InitCheckable *item)
 {
        if (!item)
-               throw B_ERROR;
+               throw(status_t) B_ERROR;
        status_t error = item->InitCheck();
        if (error != B_OK)
-               throw error;
+               throw(status_t) error;
 }
 
 #if DEBUG


Other related posts: