diff options
author | 2015-08-04 11:25:59 -0700 | |
---|---|---|
committer | 2015-08-05 15:21:59 -0700 | |
commit | 53390e1e8c33ebee5bb8100e846f5263ba05ff73 (patch) | |
tree | 4557903adf281da7ec7132ffd473d7bd5d753bc2 /libs/ui/FramebufferNativeWindow.cpp | |
parent | 7d226163cd03a455f8dd1133f6448826072f071d (diff) |
libgui/SF: Fix some code warnings
A couple of fixes to satisfy the Eclipse static code analysis tool.
- Initialize all members in constructors
- Remove unused forward declarations
- Add parentheses when combining logical and bitwise operators
- Fix a case statement with no break (it was intentional)
Change-Id: Icecb8cc98c6f58b97ab33fffb621f0edc33a7d3c
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
-rw-r--r-- | libs/ui/FramebufferNativeWindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ui/FramebufferNativeWindow.cpp b/libs/ui/FramebufferNativeWindow.cpp index 3ead25cfe8..59db157506 100644 --- a/libs/ui/FramebufferNativeWindow.cpp +++ b/libs/ui/FramebufferNativeWindow.cpp @@ -74,7 +74,7 @@ private: */ FramebufferNativeWindow::FramebufferNativeWindow() - : BASE(), fbDev(0), grDev(0), mUpdateOnDemand(false) + : BASE(), fbDev(0), grDev(0), mCurrentBufferIndex(0), mUpdateOnDemand(false) { hw_module_t const* module; if (hw_get_module(GRALLOC_HARDWARE_MODULE_ID, &module) == 0) { |