aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Lappo2017-03-23 15:44:26 -0500
committerMikhail Lappo2017-03-23 15:52:30 -0500
commitb49767c0bacb714e14f988423e14832689c6faf2 (patch)
treed9263ecace61d37381854e4dcc5d41cc514173b2 /screen_ui.h
parent20791bdcd7caad0e3ad3adedf7f9f932da278d96 (diff)
downloadplatform-bootable-recovery-b49767c0bacb714e14f988423e14832689c6faf2.tar.gz
platform-bootable-recovery-b49767c0bacb714e14f988423e14832689c6faf2.tar.xz
platform-bootable-recovery-b49767c0bacb714e14f988423e14832689c6faf2.zip
Const modifiers
This functions do not change class variables Would be good to mark them as const, so class variables are not changed by coincidence Change-Id: Iea34f6d26dbd1bde813035160e07ff2a681989e6
Diffstat (limited to 'screen_ui.h')
-rw-r--r--screen_ui.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/screen_ui.h b/screen_ui.h
index b2dcf4ae..a2322c36 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -160,14 +160,14 @@ class ScreenRecoveryUI : public RecoveryUI {
160 void LoadBitmap(const char* filename, GRSurface** surface); 160 void LoadBitmap(const char* filename, GRSurface** surface);
161 void LoadLocalizedBitmap(const char* filename, GRSurface** surface); 161 void LoadLocalizedBitmap(const char* filename, GRSurface** surface);
162 162
163 int PixelsFromDp(int dp); 163 int PixelsFromDp(int dp) const;
164 virtual int GetAnimationBaseline(); 164 virtual int GetAnimationBaseline();
165 virtual int GetProgressBaseline(); 165 virtual int GetProgressBaseline();
166 virtual int GetTextBaseline(); 166 virtual int GetTextBaseline();
167 167
168 void DrawHorizontalRule(int* y); 168 void DrawHorizontalRule(int* y);
169 void DrawTextLine(int x, int* y, const char* line, bool bold); 169 void DrawTextLine(int x, int* y, const char* line, bool bold) const;
170 void DrawTextLines(int x, int* y, const char* const* lines); 170 void DrawTextLines(int x, int* y, const char* const* lines) const;
171}; 171};
172 172
173#endif // RECOVERY_UI_H 173#endif // RECOVERY_UI_H