diff options
author | Neil <nyamatongwe@gmail.com> | 2016-05-03 12:09:33 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2016-05-03 12:09:33 +1000 |
commit | c6cbb4d76afafbd4aa496fee7e3f8f8add1a5527 (patch) | |
tree | 4e940be9abcd520b26aec93bbc0d1b130f10df85 /src/Editor.cxx | |
parent | b11991abf6f1c8f5dbe864c6c8c980b73acf9a79 (diff) | |
download | scintilla-mirror-c6cbb4d76afafbd4aa496fee7e3f8f8add1a5527.tar.gz |
Avoid use of const_cast when retrieving window positions.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<Window &>(wMain); + Window win = wMain; return win.GetClientPosition(); } |