Skip to content

Commit 7f0a0b7

Browse files
committed
App: Cleanup parameter names in Application.*
1 parent da3badd commit 7f0a0b7

File tree

2 files changed

+45
-45
lines changed

2 files changed

+45
-45
lines changed

src/App/Application.cpp

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,46 +1581,46 @@ void Application::slotChangedDocument(const App::Document& doc, const Property&
15811581
this->signalChangedDocument(doc, prop);
15821582
}
15831583

1584-
void Application::slotNewObject(const App::DocumentObject&O)
1584+
void Application::slotNewObject(const App::DocumentObject& obj)
15851585
{
1586-
this->signalNewObject(O);
1586+
this->signalNewObject(obj);
15871587
_objCount = -1;
15881588
}
15891589

1590-
void Application::slotDeletedObject(const App::DocumentObject&O)
1590+
void Application::slotDeletedObject(const App::DocumentObject& obj)
15911591
{
1592-
this->signalDeletedObject(O);
1592+
this->signalDeletedObject(obj);
15931593
_objCount = -1;
15941594
}
15951595

1596-
void Application::slotBeforeChangeObject(const DocumentObject& O, const Property& Prop)
1596+
void Application::slotBeforeChangeObject(const App::DocumentObject& obj, const App::Property& prop)
15971597
{
1598-
this->signalBeforeChangeObject(O, Prop);
1598+
this->signalBeforeChangeObject(obj, prop);
15991599
}
16001600

1601-
void Application::slotChangedObject(const App::DocumentObject&O, const App::Property& P)
1601+
void Application::slotChangedObject(const App::DocumentObject& obj, const App::Property& prop)
16021602
{
1603-
this->signalChangedObject(O,P);
1603+
this->signalChangedObject(obj, prop);
16041604
}
16051605

1606-
void Application::slotRelabelObject(const App::DocumentObject&O)
1606+
void Application::slotRelabelObject(const App::DocumentObject& obj)
16071607
{
1608-
this->signalRelabelObject(O);
1608+
this->signalRelabelObject(obj);
16091609
}
16101610

1611-
void Application::slotActivatedObject(const App::DocumentObject&O)
1611+
void Application::slotActivatedObject(const App::DocumentObject& obj)
16121612
{
1613-
this->signalActivatedObject(O);
1613+
this->signalActivatedObject(obj);
16141614
}
16151615

1616-
void Application::slotUndoDocument(const App::Document& d)
1616+
void Application::slotUndoDocument(const App::Document& doc)
16171617
{
1618-
this->signalUndoDocument(d);
1618+
this->signalUndoDocument(doc);
16191619
}
16201620

1621-
void Application::slotRedoDocument(const App::Document& d)
1621+
void Application::slotRedoDocument(const App::Document& doc)
16221622
{
1623-
this->signalRedoDocument(d);
1623+
this->signalRedoDocument(doc);
16241624
}
16251625

16261626
void Application::slotRecomputedObject(const DocumentObject& obj)
@@ -1638,19 +1638,19 @@ void Application::slotBeforeRecompute(const Document& doc)
16381638
this->signalBeforeRecomputeDocument(doc);
16391639
}
16401640

1641-
void Application::slotOpenTransaction(const Document& d, string s)
1641+
void Application::slotOpenTransaction(const Document &doc, string name)
16421642
{
1643-
this->signalOpenTransaction(d, std::move(s));
1643+
this->signalOpenTransaction(doc, std::move(name));
16441644
}
16451645

1646-
void Application::slotCommitTransaction(const Document& d)
1646+
void Application::slotCommitTransaction(const Document& doc)
16471647
{
1648-
this->signalCommitTransaction(d);
1648+
this->signalCommitTransaction(doc);
16491649
}
16501650

1651-
void Application::slotAbortTransaction(const Document& d)
1651+
void Application::slotAbortTransaction(const Document& doc)
16521652
{
1653-
this->signalAbortTransaction(d);
1653+
this->signalAbortTransaction(doc);
16541654
}
16551655

16561656
void Application::slotStartSaveDocument(const App::Document& doc, const std::string& filename)
@@ -1664,9 +1664,9 @@ void Application::slotFinishSaveDocument(const App::Document& doc, const std::st
16641664
this->signalFinishSaveDocument(doc, filename);
16651665
}
16661666

1667-
void Application::slotChangePropertyEditor(const App::Document &doc, const App::Property &prop)
1667+
void Application::slotChangePropertyEditor(const App::Document& doc, const App::Property& prop)
16681668
{
1669-
this->signalChangePropertyEditor(doc,prop);
1669+
this->signalChangePropertyEditor(doc, prop);
16701670
}
16711671

16721672
//**************************************************************************
@@ -3474,7 +3474,7 @@ std::string Application::FindHomePath(const char* sCall)
34743474
#include <cstdlib>
34753475
#include <sys/param.h>
34763476

3477-
std::string Application::FindHomePath(const char* call)
3477+
std::string Application::FindHomePath(const char* sCall)
34783478
{
34793479
// If Python is initialized at this point, then we're being run from
34803480
// MainPy.cpp, which hopefully rewrote argv[0] to point at the
@@ -3503,7 +3503,7 @@ std::string Application::FindHomePath(const char* call)
35033503
}
35043504
}
35053505

3506-
return call;
3506+
return sCall;
35073507
}
35083508

35093509
#elif defined (FC_OS_WIN32)

src/App/Application.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -472,25 +472,25 @@ class AppExport Application
472472
* This slot gets connected to all App::Documents created
473473
*/
474474
//@{
475-
void slotBeforeChangeDocument(const App::Document&, const App::Property&);
476-
void slotChangedDocument(const App::Document&, const App::Property&);
477-
void slotNewObject(const App::DocumentObject&);
478-
void slotDeletedObject(const App::DocumentObject&);
479-
void slotBeforeChangeObject(const App::DocumentObject&, const App::Property& Prop);
480-
void slotChangedObject(const App::DocumentObject&, const App::Property& Prop);
481-
void slotRelabelObject(const App::DocumentObject&);
482-
void slotActivatedObject(const App::DocumentObject&);
483-
void slotUndoDocument(const App::Document&);
484-
void slotRedoDocument(const App::Document&);
485-
void slotRecomputedObject(const App::DocumentObject&);
486-
void slotRecomputed(const App::Document&);
487-
void slotBeforeRecompute(const App::Document&);
488-
void slotOpenTransaction(const App::Document&, std::string);
489-
void slotCommitTransaction(const App::Document&);
490-
void slotAbortTransaction(const App::Document&);
491-
void slotStartSaveDocument(const App::Document&, const std::string&);
492-
void slotFinishSaveDocument(const App::Document&, const std::string&);
493-
void slotChangePropertyEditor(const App::Document&, const App::Property &);
475+
void slotBeforeChangeDocument(const App::Document &doc, const App::Property &prop);
476+
void slotChangedDocument(const App::Document &doc, const App::Property &prop);
477+
void slotNewObject(const App::DocumentObject &obj);
478+
void slotDeletedObject(const App::DocumentObject &obj);
479+
void slotBeforeChangeObject(const App::DocumentObject &obj, const App::Property &prop);
480+
void slotChangedObject(const App::DocumentObject &obj, const App::Property &prop);
481+
void slotRelabelObject(const App::DocumentObject &obj);
482+
void slotActivatedObject(const App::DocumentObject &obj);
483+
void slotUndoDocument(const App::Document &doc);
484+
void slotRedoDocument(const App::Document &doc);
485+
void slotRecomputedObject(const App::DocumentObject &obj);
486+
void slotRecomputed(const App::Document &doc);
487+
void slotBeforeRecompute(const App::Document &doc);
488+
void slotOpenTransaction(const App::Document &doc, std::string name);
489+
void slotCommitTransaction(const App::Document &doc);
490+
void slotAbortTransaction(const App::Document &doc);
491+
void slotStartSaveDocument(const App::Document &doc, const std::string &filename);
492+
void slotFinishSaveDocument(const App::Document &doc, const std::string &filename);
493+
void slotChangePropertyEditor(const App::Document &doc, const App::Property &prop);
494494
//@}
495495

496496
/// open single document only

0 commit comments

Comments
 (0)