Sketcher: [skip ci] Fix several clazy issues:
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference] * Unused QString [-Wclazy-unused-non-trivial-variable] * Missing emit keyword on signal call [-Wclazy-incorrect-emit] * Don't call QList::operator[]() on temporary [-Wclazy-detaching-temporary] * Use multi-arg instead [-Wclazy-qstring-arg] * Maybe you meant to call ViewProvider2DObjectGrid::onChanged() instead [-Wclazy-skipped-base-method]
This commit is contained in:
@@ -3022,7 +3022,7 @@ void ViewProviderSketch::unsetEdit(int ModNum)
|
||||
"ActiveSketch.ViewObject.TempoVis = None\n"
|
||||
"del(tv)\n"
|
||||
"del(ActiveSketch)\n"
|
||||
).arg(QString::fromLatin1(getDocument()->getDocument()->getName())).arg(
|
||||
).arg(QString::fromLatin1(getDocument()->getDocument()->getName()),
|
||||
QString::fromLatin1(getSketchObject()->getNameInDocument()));
|
||||
QByteArray cmdstr_bytearray = cmdstr.toLatin1();
|
||||
Gui::Command::runCommand(Gui::Command::Gui, cmdstr_bytearray);
|
||||
@@ -3046,7 +3046,7 @@ void ViewProviderSketch::setEditViewer(Gui::View3DInventorViewer* viewer, int Mo
|
||||
" ActiveSketch.ViewObject.TempoVis.saveCamera()\n"
|
||||
" if ActiveSketch.ViewObject.ForceOrtho:\n"
|
||||
" ActiveSketch.ViewObject.Document.ActiveView.setCameraType('Orthographic')\n"
|
||||
).arg(QString::fromLatin1(getDocument()->getDocument()->getName())).arg(
|
||||
).arg(QString::fromLatin1(getDocument()->getDocument()->getName()),
|
||||
QString::fromLatin1(getSketchObject()->getNameInDocument()));
|
||||
QByteArray cmdstr_bytearray = cmdstr.toLatin1();
|
||||
Gui::Command::runCommand(Gui::Command::Gui, cmdstr_bytearray);
|
||||
|
||||
Reference in New Issue
Block a user