mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
DemoApp: Remove warnings
Change-Id: Ie38307db02318acc5570d9b01982969668bfb1ed
This commit is contained in:
@@ -8,13 +8,13 @@ extern "C" {
|
||||
class MyFunCell : public ChildlessView, public Responder {
|
||||
public:
|
||||
MyFunCell();
|
||||
void setMessage(char * message);
|
||||
void setMessage(const char * message);
|
||||
void setEven(bool even);
|
||||
|
||||
void drawRect(KDRect rect) const override;
|
||||
void setFocused(bool focused) override;
|
||||
private:
|
||||
char * m_message;
|
||||
const char * m_message;
|
||||
bool m_focused;
|
||||
bool m_even;
|
||||
};
|
||||
@@ -33,7 +33,7 @@ void MyFunCell::drawRect(KDRect rect) const {
|
||||
KDDrawString(m_message, KDPointZero, m_focused);
|
||||
}
|
||||
|
||||
void MyFunCell::setMessage(char * message) {
|
||||
void MyFunCell::setMessage(const char * message) {
|
||||
m_message = message;
|
||||
}
|
||||
|
||||
@@ -68,12 +68,12 @@ private:
|
||||
// The cells should be initialized *before* the tableview!
|
||||
MyFunCell m_cells[k_maxNumberOfCells];
|
||||
TableView m_tableView;
|
||||
char ** m_messages;
|
||||
const char ** m_messages;
|
||||
int m_activeCell;
|
||||
KDCoordinate m_manualScrolling;
|
||||
};
|
||||
|
||||
static char * sMessages[] = {
|
||||
static const char * sMessages[] = {
|
||||
"AAA 0", "BBB 1", "CCC 2", "DDD 3", "EEE 4",
|
||||
"FFF 5", "GGG 6", "HHH 7", "III 8", "JJJ 9",
|
||||
"KKK10", "LLL11", "MMM12", "NNN13", "OOO14",
|
||||
|
||||
Reference in New Issue
Block a user