TD: modernize C++: replace 'typedef' with 'using'
This commit is contained in:
@@ -121,7 +121,7 @@ protected:
|
||||
|
||||
void onDeleteObject(const App::DocumentObject& obj);
|
||||
|
||||
typedef boost::signals2::connection Connection;
|
||||
using Connection = boost::signals2::connection;
|
||||
Connection connectDeletedObject;
|
||||
|
||||
bool compareSelections(std::vector<Gui::SelectionObject> treeSel,QList<QGraphicsItem*> sceneSel);
|
||||
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
virtual QIcon extensionMergeGreyableOverlayIcons(const QIcon & orig) const override;
|
||||
};
|
||||
|
||||
typedef Gui::ViewProviderExtensionPythonT<TechDrawGui::ViewProviderCosmeticExtension> ViewProviderCosmeticExtensionPython;
|
||||
using ViewProviderCosmeticExtensionPython = Gui::ViewProviderExtensionPythonT<TechDrawGui::ViewProviderCosmeticExtension>;
|
||||
|
||||
} //namespace TechDrawGui
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
void onProgressMessage(const TechDraw::DrawView* dv,
|
||||
const std::string featureName,
|
||||
const std::string text);
|
||||
typedef boost::signals2::scoped_connection Connection;
|
||||
using Connection = boost::signals2::scoped_connection;
|
||||
Connection connectGuiRepaint;
|
||||
Connection connectProgressMessage;
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
|
||||
//slots & connections
|
||||
void onGuiRepaint(const TechDraw::DrawPage* dp);
|
||||
typedef boost::signals2::scoped_connection Connection;
|
||||
using Connection = boost::signals2::scoped_connection;
|
||||
Connection connectGuiRepaint;
|
||||
|
||||
void unsetEdit(int ModNum) override;
|
||||
|
||||
Reference in New Issue
Block a user