Mod: redundant void 2

This commit is contained in:
berniev
2022-08-07 20:05:16 +10:00
committed by wwmayer
parent 311abcc43e
commit da9ebc572f
805 changed files with 3787 additions and 3787 deletions

View File

@@ -38,7 +38,7 @@
// use a different name to CreateCommand()
void CreateWebCommands(void);
void CreateWebCommands();
void loadWebResource()
{

View File

@@ -734,7 +734,7 @@ void BrowserView::setHtml(const QString& HtmlCode,const QUrl & BaseUrl)
#endif
}
void BrowserView::stop(void)
void BrowserView::stop()
{
view->stop();
}
@@ -867,12 +867,12 @@ bool BrowserView::onHasMsg(const char* pMsg) const
}
/** Checking on close state. */
bool BrowserView::canClose(void)
bool BrowserView::canClose()
{
return true;
}
PyObject* BrowserView::getPyObject(void)
PyObject* BrowserView::getPyObject()
{
static bool init = false;
if (!init) {

View File

@@ -90,18 +90,18 @@ public:
void load(const char* URL);
void load(const QUrl & url);
void setHtml(const QString& HtmlCode,const QUrl & BaseUrl);
void stop(void);
void stop();
QUrl url() const;
void OnChange(Base::Subject<const char*> &rCaller,const char* rcReason);
const char *getName(void) const {return "BrowserView";}
virtual PyObject *getPyObject(void);
const char *getName() const {return "BrowserView";}
virtual PyObject *getPyObject();
bool onMsg(const char* pMsg,const char** ppReturn);
bool onHasMsg(const char* pMsg) const;
bool canClose (void);
bool canClose ();
#ifdef QTWEBENGINE
public Q_SLOTS:

View File

@@ -83,7 +83,7 @@ void CmdWebBrowserBack::activated(int iMsg)
doCommand(Command::Gui,"Gui.SendMsgToActiveView('Back')");
}
bool CmdWebBrowserBack::isActive(void)
bool CmdWebBrowserBack::isActive()
{
return getGuiApplication()->sendHasMsgToActiveView("Back");
}
@@ -112,7 +112,7 @@ void CmdWebBrowserNext::activated(int iMsg)
doCommand(Command::Gui,"Gui.SendMsgToActiveView('Next')");
}
bool CmdWebBrowserNext::isActive(void)
bool CmdWebBrowserNext::isActive()
{
return getGuiApplication()->sendHasMsgToActiveView("Next");
}
@@ -141,7 +141,7 @@ void CmdWebBrowserRefresh::activated(int iMsg)
doCommand(Command::Gui,"Gui.SendMsgToActiveView('Refresh')");
}
bool CmdWebBrowserRefresh::isActive(void)
bool CmdWebBrowserRefresh::isActive()
{
return getGuiApplication()->sendHasMsgToActiveView("Refresh");
}
@@ -170,7 +170,7 @@ void CmdWebBrowserStop::activated(int iMsg)
doCommand(Command::Gui,"Gui.SendMsgToActiveView('Stop')");
}
bool CmdWebBrowserStop::isActive(void)
bool CmdWebBrowserStop::isActive()
{
return getGuiApplication()->sendHasMsgToActiveView("Stop");
}
@@ -199,7 +199,7 @@ void CmdWebBrowserZoomIn::activated(int iMsg)
doCommand(Command::Gui,"Gui.SendMsgToActiveView('ZoomIn')");
}
bool CmdWebBrowserZoomIn::isActive(void)
bool CmdWebBrowserZoomIn::isActive()
{
return getGuiApplication()->sendHasMsgToActiveView("ZoomIn");
}
@@ -228,7 +228,7 @@ void CmdWebBrowserZoomOut::activated(int iMsg)
doCommand(Command::Gui,"Gui.SendMsgToActiveView('ZoomOut')");
}
bool CmdWebBrowserZoomOut::isActive(void)
bool CmdWebBrowserZoomOut::isActive()
{
return getGuiApplication()->sendHasMsgToActiveView("ZoomOut");
}
@@ -257,14 +257,14 @@ void CmdWebBrowserSetURL::activated(int iMsg)
doCommand(Command::Gui,"Gui.SendMsgToActiveView('SetURL')");
}
bool CmdWebBrowserSetURL::isActive(void)
bool CmdWebBrowserSetURL::isActive()
{
return getGuiApplication()->sendHasMsgToActiveView("SetURL");
}
void CreateWebCommands(void)
void CreateWebCommands()
{
Gui::CommandManager &rcCmdMgr = Gui::Application::Instance->commandManager();