summaryrefslogtreecommitdiff
path: root/libs/ui/FramebufferNativeWindow.cpp
diff options
context:
space:
mode:
authorIliyan Malchev <malchev@google.com>2011-04-14 16:54:38 -0700
committerIliyan Malchev <malchev@google.com>2011-05-03 15:49:40 -0700
commit4d7c1ce651bd5e283e694fa34641e1dc080613c0 (patch)
treecfb1f708b760f20b08ec81a6bc4d25c59ec8cc04 /libs/ui/FramebufferNativeWindow.cpp
parent9c7ac0d142eaf4b083a309299ab023932a9bb109 (diff)
frameworks/base: make the ANativeWindow query() method const
query() does not modify the object's data, so it needs to be a const method Change-Id: I67c40a3c865461e6f1cc2193fd2d74286ff6ac8f Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
-rw-r--r--libs/ui/FramebufferNativeWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ui/FramebufferNativeWindow.cpp b/libs/ui/FramebufferNativeWindow.cpp
index dc223f96453a..0c820e5d7683 100644
--- a/libs/ui/FramebufferNativeWindow.cpp
+++ b/libs/ui/FramebufferNativeWindow.cpp
@@ -270,10 +270,10 @@ int FramebufferNativeWindow::queueBuffer(ANativeWindow* window,
return res;
}
-int FramebufferNativeWindow::query(ANativeWindow* window,
+int FramebufferNativeWindow::query(const ANativeWindow* window,
int what, int* value)
{
- FramebufferNativeWindow* self = getSelf(window);
+ const FramebufferNativeWindow* self = getSelf(window);
Mutex::Autolock _l(self->mutex);
framebuffer_device_t* fb = self->fbDev;
switch (what) {