fix -Wextra in Start & Web

This commit is contained in:
wmayer 2016-09-21 21:27:09 +02:00
parent 49869ba7a1
commit 53531b603a
5 changed files with 16 additions and 4 deletions

View File

@ -50,9 +50,9 @@ CmdStartConstraintAxle::CmdStartConstraintAxle()
void CmdStartConstraintAxle::activated(int iMsg)
{
Q_UNUSED(iMsg);
// load the file with the module
//Command::doCommand(Command::Gui, "import Start, StartGui");
}

View File

@ -84,9 +84,10 @@ void StartGui::Workbench::activated()
}
}
void StartGui::Workbench::setupContextMenu(const char* recipient,Gui::MenuItem* item) const
void StartGui::Workbench::setupContextMenu(const char* recipient, Gui::MenuItem* item) const
{
Q_UNUSED(recipient);
Q_UNUSED(item);
}
Gui::MenuItem* StartGui::Workbench::setupMenuBar() const

View File

@ -359,12 +359,14 @@ void BrowserView::onOpenLinkInNewWindow(const QUrl& url)
void BrowserView::OnChange(Base::Subject<const char*> &rCaller,const char* rcReason)
{
Q_UNUSED(rCaller);
Q_UNUSED(rcReason);
}
/**
* Runs the action specified by \a pMsg.
*/
bool BrowserView::onMsg(const char* pMsg,const char** ppReturn)
bool BrowserView::onMsg(const char* pMsg,const char** )
{
if (strcmp(pMsg,"Back")==0){
view->back();

View File

@ -58,6 +58,7 @@ CmdWebOpenWebsite::CmdWebOpenWebsite()
void CmdWebOpenWebsite::activated(int iMsg)
{
Q_UNUSED(iMsg);
doCommand(Doc,"import WebGui");
doCommand(Command::Gui,"WebGui.openBrowser('http://www.freecadweb.org/')");
}
@ -82,6 +83,7 @@ CmdWebBrowserBack::CmdWebBrowserBack()
void CmdWebBrowserBack::activated(int iMsg)
{
Q_UNUSED(iMsg);
doCommand(Command::Gui,"Gui.SendMsgToActiveView('Back')");
}
@ -110,6 +112,7 @@ CmdWebBrowserNext::CmdWebBrowserNext()
void CmdWebBrowserNext::activated(int iMsg)
{
Q_UNUSED(iMsg);
doCommand(Command::Gui,"Gui.SendMsgToActiveView('Next')");
}
@ -138,6 +141,7 @@ CmdWebBrowserRefresh::CmdWebBrowserRefresh()
void CmdWebBrowserRefresh::activated(int iMsg)
{
Q_UNUSED(iMsg);
doCommand(Command::Gui,"Gui.SendMsgToActiveView('Refresh')");
}
@ -166,6 +170,7 @@ CmdWebBrowserStop::CmdWebBrowserStop()
void CmdWebBrowserStop::activated(int iMsg)
{
Q_UNUSED(iMsg);
doCommand(Command::Gui,"Gui.SendMsgToActiveView('Stop')");
}
@ -194,6 +199,7 @@ CmdWebBrowserZoomIn::CmdWebBrowserZoomIn()
void CmdWebBrowserZoomIn::activated(int iMsg)
{
Q_UNUSED(iMsg);
doCommand(Command::Gui,"Gui.SendMsgToActiveView('ZoomIn')");
}
@ -222,6 +228,7 @@ CmdWebBrowserZoomOut::CmdWebBrowserZoomOut()
void CmdWebBrowserZoomOut::activated(int iMsg)
{
Q_UNUSED(iMsg);
doCommand(Command::Gui,"Gui.SendMsgToActiveView('ZoomOut')");
}

View File

@ -59,6 +59,8 @@ Workbench::~Workbench()
void Workbench::setupContextMenu(const char* recipient,Gui::MenuItem* item) const
{
Q_UNUSED(recipient);
Q_UNUSED(item);
//if (strcmp(recipient,"View") == 0)
//{
// Gui::MenuItem* StdViews = new Gui::MenuItem();