From c6cbb4d76afafbd4aa496fee7e3f8f8add1a5527 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 3 May 2016 12:09:33 +1000 Subject: Avoid use of const_cast when retrieving window positions. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index eddc0e623..9a41bab09 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -303,7 +303,7 @@ int Editor::TopLineOfMain() const { } PRectangle Editor::GetClientRectangle() const { - Window &win = const_cast(wMain); + Window win = wMain; return win.GetClientPosition(); } -- cgit v1.2.3