[DEBUG] gcc compilation warning

This commit is contained in:
Edouard DUPIN 2014-08-21 21:00:13 +02:00
parent 03fa46bbcd
commit d31137e1a3
5 changed files with 57 additions and 57 deletions

View File

@ -35,7 +35,7 @@ appl::TextViewerPlugin::~TextViewerPlugin() {
return; return;
} }
m_isEnable = false; m_isEnable = false;
onPluginDisable(); onPluginGlobalDisable();
} }
void appl::TextViewerPlugin::setEnableStatus(bool _status) { void appl::TextViewerPlugin::setEnableStatus(bool _status) {
@ -44,9 +44,9 @@ void appl::TextViewerPlugin::setEnableStatus(bool _status) {
} }
m_isEnable = _status; m_isEnable = _status;
if (m_isEnable == true) { if (m_isEnable == true) {
onPluginEnable(); onPluginGlobalEnable();
} else { } else {
onPluginDisable(); onPluginGlobalDisable();
} }
} }

View File

@ -42,13 +42,13 @@ namespace appl {
/** /**
* @brief On plugin global enable. * @brief On plugin global enable.
*/ */
virtual void onPluginEnable() { virtual void onPluginGlobalEnable() {
// nothing to do here ... // nothing to do here ...
}; };
/** /**
* @brief On plugin global disable. * @brief On plugin global disable.
*/ */
virtual void onPluginDisable() { virtual void onPluginGlobalDisable() {
// nothing to do here ... // nothing to do here ...
}; };
/** /**

View File

@ -61,7 +61,7 @@ namespace appl {
if (data == nullptr) { if (data == nullptr) {
return false; return false;
} }
return onReceiveMessageViewer(_textDrawer, _msg, *data); return onDataReceiveMessageViewer(_textDrawer, _msg, *data);
} }
bool onWrite(appl::TextViewer& _textDrawer, bool onWrite(appl::TextViewer& _textDrawer,
const appl::Buffer::Iterator& _pos, const appl::Buffer::Iterator& _pos,
@ -70,7 +70,7 @@ namespace appl {
if (data == nullptr) { if (data == nullptr) {
return false; return false;
} }
return onWrite(_textDrawer, _pos, _data, *data); return onDataWrite(_textDrawer, _pos, _data, *data);
} }
bool onReplace(appl::TextViewer& _textDrawer, bool onReplace(appl::TextViewer& _textDrawer,
const appl::Buffer::Iterator& _pos, const appl::Buffer::Iterator& _pos,
@ -80,7 +80,7 @@ namespace appl {
if (data == nullptr) { if (data == nullptr) {
return false; return false;
} }
return onReplace(_textDrawer, _pos, _data, _posEnd, *data); return onDataReplace(_textDrawer, _pos, _data, _posEnd, *data);
} }
bool onRemove(appl::TextViewer& _textDrawer, bool onRemove(appl::TextViewer& _textDrawer,
const appl::Buffer::Iterator& _pos, const appl::Buffer::Iterator& _pos,
@ -89,32 +89,32 @@ namespace appl {
if (data == nullptr) { if (data == nullptr) {
return false; return false;
} }
return onRemove(_textDrawer, _pos, _posEnd, *data); return onDataRemove(_textDrawer, _pos, _posEnd, *data);
} }
public: public:
virtual bool onReceiveMessageViewer(appl::TextViewer& _textDrawer, virtual bool onDataReceiveMessageViewer(appl::TextViewer& _textDrawer,
const ewol::object::Message& _msg, const ewol::object::Message& _msg,
TYPE& _data) { TYPE& _data) {
return false; return false;
} }
virtual bool onWrite(appl::TextViewer& _textDrawer, virtual bool onDataWrite(appl::TextViewer& _textDrawer,
const appl::Buffer::Iterator& _pos, const appl::Buffer::Iterator& _pos,
const std::string& _strData, const std::string& _strData,
TYPE& _data) { TYPE& _data) {
return false; return false;
} }
virtual bool onReplace(appl::TextViewer& _textDrawer, virtual bool onDataReplace(appl::TextViewer& _textDrawer,
const appl::Buffer::Iterator& _pos, const appl::Buffer::Iterator& _pos,
const std::string& _strData, const std::string& _strData,
const appl::Buffer::Iterator& _posEnd, const appl::Buffer::Iterator& _posEnd,
TYPE& _data) { TYPE& _data) {
return false; return false;
} }
virtual bool onRemove(appl::TextViewer& _textDrawer, virtual bool onDataRemove(appl::TextViewer& _textDrawer,
const appl::Buffer::Iterator& _pos, const appl::Buffer::Iterator& _pos,
const appl::Buffer::Iterator& _posEnd, const appl::Buffer::Iterator& _posEnd,
TYPE& _data) { TYPE& _data) {
return false; return false;
} }
virtual void remove(TYPE& _data) { virtual void remove(TYPE& _data) {

View File

@ -40,9 +40,9 @@ void appl::TextPluginHistory::onPluginDisable(appl::TextViewer& _textDrawer) {
// TODO : unknow function ... // TODO : unknow function ...
} }
bool appl::TextPluginHistory::onReceiveMessageViewer(appl::TextViewer& _textDrawer, bool appl::TextPluginHistory::onDataReceiveMessageViewer(appl::TextViewer& _textDrawer,
const ewol::object::Message& _msg, const ewol::object::Message& _msg,
appl::PluginHistoryData& _data) { appl::PluginHistoryData& _data) {
if (isEnable() == false) { if (isEnable() == false) {
return false; return false;
} }
@ -111,10 +111,10 @@ void appl::TextPluginHistory::clearUndo(appl::PluginHistoryData& _data) {
} }
bool appl::TextPluginHistory::onWrite(appl::TextViewer& _textDrawer, bool appl::TextPluginHistory::onDataWrite(appl::TextViewer& _textDrawer,
const appl::Buffer::Iterator& _pos, const appl::Buffer::Iterator& _pos,
const std::string& _strData, const std::string& _strData,
appl::PluginHistoryData& _data) { appl::PluginHistoryData& _data) {
if (isEnable() == false) { if (isEnable() == false) {
return false; return false;
} }
@ -134,11 +134,11 @@ bool appl::TextPluginHistory::onWrite(appl::TextViewer& _textDrawer,
return true; return true;
} }
bool appl::TextPluginHistory::onReplace(appl::TextViewer& _textDrawer, bool appl::TextPluginHistory::onDataReplace(appl::TextViewer& _textDrawer,
const appl::Buffer::Iterator& _pos, const appl::Buffer::Iterator& _pos,
const std::string& _strData, const std::string& _strData,
const appl::Buffer::Iterator& _posEnd, const appl::Buffer::Iterator& _posEnd,
appl::PluginHistoryData& _data) { appl::PluginHistoryData& _data) {
if (isEnable() == false) { if (isEnable() == false) {
return false; return false;
} }
@ -159,10 +159,10 @@ bool appl::TextPluginHistory::onReplace(appl::TextViewer& _textDrawer,
return true; return true;
} }
bool appl::TextPluginHistory::onRemove(appl::TextViewer& _textDrawer, bool appl::TextPluginHistory::onDataRemove(appl::TextViewer& _textDrawer,
const appl::Buffer::Iterator& _pos, const appl::Buffer::Iterator& _pos,
const appl::Buffer::Iterator& _posEnd, const appl::Buffer::Iterator& _posEnd,
appl::PluginHistoryData& _data) { appl::PluginHistoryData& _data) {
if (isEnable() == false) { if (isEnable() == false) {
return false; return false;
} }

View File

@ -46,22 +46,22 @@ namespace appl {
public: public:
virtual void onPluginEnable(appl::TextViewer& _textDrawer); virtual void onPluginEnable(appl::TextViewer& _textDrawer);
virtual void onPluginDisable(appl::TextViewer& _textDrawer); virtual void onPluginDisable(appl::TextViewer& _textDrawer);
virtual bool onReceiveMessageViewer(appl::TextViewer& _textDrawer, virtual bool onDataReceiveMessageViewer(appl::TextViewer& _textDrawer,
const ewol::object::Message& _msg, const ewol::object::Message& _msg,
appl::PluginHistoryData& _data); appl::PluginHistoryData& _data);
virtual bool onWrite(appl::TextViewer& _textDrawer, virtual bool onDataWrite(appl::TextViewer& _textDrawer,
const appl::Buffer::Iterator& _pos, const appl::Buffer::Iterator& _pos,
const std::string& _strData, const std::string& _strData,
appl::PluginHistoryData& _data); appl::PluginHistoryData& _data);
virtual bool onReplace(appl::TextViewer& _textDrawer, virtual bool onDataReplace(appl::TextViewer& _textDrawer,
const appl::Buffer::Iterator& _pos, const appl::Buffer::Iterator& _pos,
const std::string& _strData, const std::string& _strData,
const appl::Buffer::Iterator& _posEnd, const appl::Buffer::Iterator& _posEnd,
appl::PluginHistoryData& _data); appl::PluginHistoryData& _data);
virtual bool onRemove(appl::TextViewer& _textDrawer, virtual bool onDataRemove(appl::TextViewer& _textDrawer,
const appl::Buffer::Iterator& _pos, const appl::Buffer::Iterator& _pos,
const appl::Buffer::Iterator& _posEnd, const appl::Buffer::Iterator& _posEnd,
appl::PluginHistoryData& _data); appl::PluginHistoryData& _data);
virtual void remove(appl::PluginHistoryData& _data) { virtual void remove(appl::PluginHistoryData& _data) {
clearRedo(_data); clearRedo(_data);
clearUndo(_data); clearUndo(_data);