From 9db77e3808139fe3364345aa7bf09a5e41198e4c Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 6 May 2008 22:08:18 +0000 Subject: (svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL. --- src/order_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/order_gui.cpp') diff --git a/src/order_gui.cpp b/src/order_gui.cpp index e85c14229..0df7079c0 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -799,7 +799,7 @@ static void OrdersWndProc(Window *w, WindowEvent *e) /* This was a click on an empty part of the orders window, so * deselect the currently selected order. */ WP(w, order_d).sel = -1; - SetWindowDirty(w); + w->SetDirty(); return; } @@ -831,7 +831,7 @@ static void OrdersWndProc(Window *w, WindowEvent *e) } } - SetWindowDirty(w); + w->SetDirty(); } break; case ORDER_WIDGET_SKIP: -- cgit v1.2.3-70-g09d2