From aff5f9e5de1e4f707d2f5eff229dad9daaeed286 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 23 Feb 2011 10:31:25 +1100 Subject: Avoid some cppcheck warnings. --- gtk/PlatGTK.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index b8d94f94d..651805e65 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -2142,7 +2142,6 @@ void Window::SetTitle(const char *s) { gdk window coordinates */ PRectangle Window::GetMonitorRect(Point pt) { gint x_offset, y_offset; - pt = pt; gdk_window_get_origin(PWidget(wid)->window, &x_offset, &y_offset); @@ -2161,6 +2160,7 @@ PRectangle Window::GetMonitorRect(Point pt) { return PRectangle(rect.x, rect.y, rect.x + rect.width, rect.y + rect.height); } #else + pt = pt; return PRectangle(-x_offset, -y_offset, (-x_offset) + gdk_screen_width(), (-y_offset) + gdk_screen_height()); #endif @@ -2203,7 +2203,7 @@ public: CallBackAction doubleClickAction; void *doubleClickActionData; - ListBoxX() : list(0), pixhash(NULL), pixbuf_renderer(0), + ListBoxX() : list(0), scroller(0), pixhash(NULL), pixbuf_renderer(0), desiredVisibleRows(5), maxItemCharacters(0), aveCharWidth(1), doubleClickAction(NULL), doubleClickActionData(NULL) { } -- cgit v1.2.3