mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
fix more "type qualifiers ignored on function return type" warnings
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@105 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -166,7 +166,7 @@ FT_Error FBFontRenderClass::getGlyphBitmap(FTC_ScalerRec *sc, FT_ULong glyph_ind
|
||||
return FTC_SBitCache_LookupScaler(sbitsCache, sc, FT_LOAD_DEFAULT, glyph_index, sbit, NULL);
|
||||
}
|
||||
|
||||
const char * const FBFontRenderClass::AddFont(const char * const filename, const bool make_italics)
|
||||
const char *FBFontRenderClass::AddFont(const char * const filename, const bool make_italics)
|
||||
{
|
||||
fflush(stdout);
|
||||
int error;
|
||||
|
@@ -113,7 +113,7 @@ class FBFontRenderClass
|
||||
|
||||
std::string getFamily(const char * const filename) const;
|
||||
|
||||
const char * const AddFont(const char * const filename, const bool make_italics = false);
|
||||
const char * AddFont(const char * const filename, const bool make_italics = false);
|
||||
|
||||
FBFontRenderClass(const int xres = 72, const int yres = 72);
|
||||
~FBFontRenderClass();
|
||||
|
@@ -53,9 +53,9 @@ class CBookmark
|
||||
std::string time;
|
||||
public:
|
||||
CBookmark(const std::string & name, const std::string & url, const std::string & time);
|
||||
const char * const getName(void) const { return name.c_str(); };
|
||||
const char * const getUrl (void) const { return url .c_str(); };
|
||||
const char * const getTime(void) const { return time.c_str(); };
|
||||
const char *getName(void) const { return name.c_str(); };
|
||||
const char *getUrl (void) const { return url .c_str(); };
|
||||
const char *getTime(void) const { return time.c_str(); };
|
||||
inline void setName(const std::string & new_name) { name = new_name; };
|
||||
inline void setUrl (const std::string & new_url ) { url = new_url ; };
|
||||
inline void setTime(const std::string & new_time) { time = new_time; };
|
||||
|
@@ -98,7 +98,7 @@ class CChannelList
|
||||
CZapitChannel* operator[]( uint32_t index) { if (chanlist.size() > index) return chanlist[index]; else return NULL;};
|
||||
int getKey(int);
|
||||
|
||||
const char * const getName (void) const { return name.c_str(); };
|
||||
const char * getName (void) const { return name.c_str(); };
|
||||
const std::string & getActiveChannelName (void) const; // UTF-8
|
||||
t_satellite_position getActiveSatellitePosition(void) const;
|
||||
int getActiveChannelNumber (void) const;
|
||||
|
@@ -384,22 +384,22 @@ CFlashVersionInfo::CFlashVersionInfo(const std::string & versionString)
|
||||
time[5] = 0;
|
||||
}
|
||||
|
||||
const char * const CFlashVersionInfo::getDate(void) const
|
||||
const char *CFlashVersionInfo::getDate(void) const
|
||||
{
|
||||
return date;
|
||||
}
|
||||
|
||||
const char * const CFlashVersionInfo::getTime(void) const
|
||||
const char *CFlashVersionInfo::getTime(void) const
|
||||
{
|
||||
return time;
|
||||
}
|
||||
|
||||
const char * const CFlashVersionInfo::getReleaseCycle(void) const
|
||||
const char *CFlashVersionInfo::getReleaseCycle(void) const
|
||||
{
|
||||
return releaseCycle;
|
||||
}
|
||||
|
||||
const char * const CFlashVersionInfo::getType(void) const
|
||||
const char *CFlashVersionInfo::getType(void) const
|
||||
{
|
||||
switch (snapshot)
|
||||
{
|
||||
|
@@ -81,10 +81,10 @@ class CFlashVersionInfo
|
||||
|
||||
CFlashVersionInfo(const std::string & versionString);
|
||||
|
||||
const char * const getDate(void) const;
|
||||
const char * const getTime(void) const;
|
||||
const char * const getReleaseCycle(void) const;
|
||||
const char * const getType(void) const;
|
||||
const char *getDate(void) const;
|
||||
const char *getTime(void) const;
|
||||
const char *getReleaseCycle(void) const;
|
||||
const char *getType(void) const;
|
||||
};
|
||||
|
||||
|
||||
|
@@ -144,7 +144,7 @@ class CFrontend
|
||||
uint32_t getUncorrectedBlocks(void) const;
|
||||
void getDelSys(int f, int m, char * &fec, char * &sys, char * &mod);
|
||||
|
||||
const int32_t getCurrentSatellitePosition() { return currentSatellitePosition; }
|
||||
int32_t getCurrentSatellitePosition() { return currentSatellitePosition; }
|
||||
|
||||
void setDiseqcRepeats(const uint8_t repeats) { diseqcRepeats = repeats; }
|
||||
void setDiseqcType(const diseqc_t type);
|
||||
@@ -157,12 +157,12 @@ class CFrontend
|
||||
void positionMotor(uint8_t motorPosition);
|
||||
void sendMotorCommand(uint8_t cmdtype, uint8_t address, uint8_t command, uint8_t num_parameters, uint8_t parameter1, uint8_t parameter2, int repeat = 0);
|
||||
void gotoXX(t_satellite_position pos);
|
||||
const bool tuneChannel (CZapitChannel *channel, bool nvod);
|
||||
const bool retuneChannel (void);
|
||||
const bool retuneTP (bool nowait = true);
|
||||
bool tuneChannel(CZapitChannel *channel, bool nvod);
|
||||
bool retuneChannel(void);
|
||||
bool retuneTP(bool nowait = true);
|
||||
|
||||
fe_code_rate_t getCFEC ();
|
||||
const transponder_id_t getTsidOnid() { return currentTransponder.TP_id; }
|
||||
transponder_id_t getTsidOnid() { return currentTransponder.TP_id; }
|
||||
void setTsidOnid(transponder_id_t newid) { currentTransponder.TP_id = newid; }
|
||||
uint32_t getRate ();
|
||||
void Close();
|
||||
|
@@ -957,7 +957,7 @@ void CFrontend::setInput(t_satellite_position satellitePosition, uint32_t freque
|
||||
}
|
||||
}
|
||||
|
||||
const bool CFrontend::tuneChannel(CZapitChannel * /*channel*/, bool /*nvod*/)
|
||||
bool CFrontend::tuneChannel(CZapitChannel * /*channel*/, bool /*nvod*/)
|
||||
{
|
||||
//printf("tuneChannel: tpid %llx\n", currentTransponder.TP_id);
|
||||
transponder_list_t::iterator transponder = transponders.find(currentTransponder.TP_id);
|
||||
@@ -966,14 +966,14 @@ const bool CFrontend::tuneChannel(CZapitChannel * /*channel*/, bool /*nvod*/)
|
||||
return tuneFrequency(&transponder->second.feparams, transponder->second.polarization, false);
|
||||
}
|
||||
|
||||
const bool CFrontend::retuneTP(bool nowait)
|
||||
bool CFrontend::retuneTP(bool nowait)
|
||||
{
|
||||
/* used in pip only atm */
|
||||
tuneFrequency(&curfe, currentTransponder.polarization, nowait);
|
||||
return 0;
|
||||
}
|
||||
|
||||
const bool CFrontend::retuneChannel(void)
|
||||
bool CFrontend::retuneChannel(void)
|
||||
{
|
||||
setFrontend(¤tTransponder.feparams);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user