TD: modernize C++: replace 'typedef' with 'using'

This commit is contained in:
wmayer
2022-08-30 10:59:39 +02:00
parent 312c8f68e4
commit 5f91eaa5eb
33 changed files with 57 additions and 61 deletions

View File

@@ -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);

View File

@@ -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

View File

@@ -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;

View File

@@ -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;