HWC: Fix for use int reference in function call
To use the integer reference, declared integer
variable to get value directly in that variable.
Change-Id: I1fd1a45580be99dd95ccbc3495e28455a4c7de23
diff --git a/libhwcomposer/hwc_utils.cpp b/libhwcomposer/hwc_utils.cpp
index eed6e9d..216e83a 100644
--- a/libhwcomposer/hwc_utils.cpp
+++ b/libhwcomposer/hwc_utils.cpp
@@ -310,12 +310,12 @@
float xRatio = 1.0;
float yRatio = 1.0;
- float fbWidth = ctx->dpyAttr[dpy].xres;
- float fbHeight = ctx->dpyAttr[dpy].yres;
+ int fbWidth = ctx->dpyAttr[dpy].xres;
+ int fbHeight = ctx->dpyAttr[dpy].yres;
if(ctx->dpyAttr[dpy].mDownScaleMode) {
// if downscale Mode is enabled for external, need to query
// the actual width and height, as that is the physical w & h
- ctx->mExtDisplay->getAttributes((int&)fbWidth, (int&)fbHeight);
+ ctx->mExtDisplay->getAttributes(fbWidth, fbHeight);
}
@@ -328,7 +328,7 @@
float asX = 0;
float asY = 0;
float asW = fbWidth;
- float asH= fbHeight;
+ float asH = fbHeight;
// based on the action safe ratio, get the Action safe rectangle
asW = fbWidth * (1.0f - asWidthRatio / 100.0f);