Bug 1277647 - return the correct type from ANativeWindow_setBuffersGeometry; r=snorp

This function returns a boolean, so let's return that, rather than
relying on pointer-to-boolean coercion.
This commit is contained in:
Nathan Froyd 2016-06-03 18:31:05 -04:00
Родитель 900260f1fd
Коммит b61b54f642
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -62,7 +62,7 @@ public:
bool ANativeWindow_setBuffersGeometry(void* aWindow, int32_t aWidth, int32_t aHeight, int32_t aFormat) {
ALOG("%s: window=%p, width=%d, height=%d, format=%d\n", __PRETTY_FUNCTION__, aWindow, aWidth, aHeight, aFormat);
if (!Initialized()) {
return nullptr;
return false;
}
return fANativeWindow_setBuffersGeometry(aWindow, aWidth, aHeight, (int32_t)aFormat) == 0;
@ -278,4 +278,4 @@ AndroidNativeWindow::UnlockAndPost()
}
#endif // MOZ_WIDGET_ANDROID
#endif // MOZ_WIDGET_ANDROID