removed not needed try/catch block - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/canvas-window.cpp
diff options
context:
space:
mode:
authorfrancesco-ST <francesco.abbate@st.com>2010年09月14日 14:41:39 +0200
committerfrancesco-ST <francesco.abbate@st.com>2010年09月14日 14:41:39 +0200
commit6437833a3359390ce4126bb0934585e0345ccb32 (patch)
tree777f853849407c3a40043f8c14dd151e2c61d6c1 /agg-plot/canvas-window.cpp
parente7c6c9f1d347e95a85c0f8bc66790db27878d1cd (diff)
downloadgsl-shell-6437833a3359390ce4126bb0934585e0345ccb32.tar.gz
removed not needed try/catch block
Diffstat (limited to 'agg-plot/canvas-window.cpp')
-rw-r--r--agg-plot/canvas-window.cpp 9
1 files changed, 1 insertions, 8 deletions
diff --git a/agg-plot/canvas-window.cpp b/agg-plot/canvas-window.cpp
index 3fe90258..f42a00a2 100644
--- a/agg-plot/canvas-window.cpp
+++ b/agg-plot/canvas-window.cpp
@@ -49,14 +49,7 @@ canvas_window::on_resize(int sx, int sy)
if (m_canvas)
delete m_canvas;
- try
- {
- m_canvas = new canvas(rbuf_window(), sx, sy, m_bgcolor);
- }
- catch (std::bad_alloc&)
- {
- m_canvas = 0;
- }
+ m_canvas = new(std::nothrow) canvas(rbuf_window(), sx, sy, m_bgcolor);
m_matrix.sx = sx;
m_matrix.sy = sy;
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月13日 22:04:40 +0000

AltStyle によって変換されたページ (->オリジナル) /