DebugAnalyzer.cpp: Fix catch of polymorphic exception by value
Signed-off-by: Jaroslaw Pelczar <[email protected]> Change-Id: I580dafec7fa0ab038b394f50a5a5131b86711cde Reviewed-on: https://review.haiku-os.org/c/haiku/+/1761 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
7e66a28740
commit
8965d4ab78
@@ -79,7 +79,7 @@ private:
|
|||||||
MainWindow* window;
|
MainWindow* window;
|
||||||
try {
|
try {
|
||||||
window = new MainWindow(dataSource);
|
window = new MainWindow(dataSource);
|
||||||
} catch (std::bad_alloc) {
|
} catch (std::bad_alloc&) {
|
||||||
fprintf(stderr, "DebugAnalyzer::_CreateWindow(): Out of memory!\n");
|
fprintf(stderr, "DebugAnalyzer::_CreateWindow(): Out of memory!\n");
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user