debuganalyzer: Fix catch of polymorphic object by value
Signed-off-by: Jaroslaw Pelczar <[email protected]> Change-Id: I1290a313905d3d940532c7c1626a631bf70afb29 Reviewed-on: https://review.haiku-os.org/c/haiku/+/1762 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
8965d4ab78
commit
4f77a907ba
@@ -528,7 +528,7 @@ ABSTRACT_WAIT_OBJECTS_PAGE_CLASS::_UpdateTreeModel()
|
||||
try {
|
||||
fWaitObjectsTreeModel = new WaitObjectsTreeModel(fModel,
|
||||
fGroupByName);
|
||||
} catch (std::bad_alloc) {
|
||||
} catch (std::bad_alloc&) {
|
||||
// TODO: Report error!
|
||||
}
|
||||
fWaitObjectsTree->SetTreeTableModel(fWaitObjectsTreeModel);
|
||||
|
||||
@@ -177,7 +177,7 @@ MainWindow::OpenThreadWindow(Model::Thread* thread)
|
||||
// window doesn't exist yet -- create it
|
||||
try {
|
||||
window = new ThreadWindow(fSubWindowManager, fModel, thread);
|
||||
} catch (std::bad_alloc) {
|
||||
} catch (std::bad_alloc&) {
|
||||
// TODO: Report error!
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user