mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +03:00
Coding - Apply .clang-format formatting #286
Update empty method guards to new style with regex (see PR). Used clang-format 18.1.8. New actions to validate code formatting is added. Update .clang-format with disabling of include sorting. It is temporary changes, then include will be sorted. Apply formatting for /src and /tools folder. The files with .hxx,.cxx,.lxx,.h,.pxx,.hpp,*.cpp extensions.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
// distribution for complete text of the license and disclaimer of any warranty.
|
||||
//
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#include <inspector/DFBrowserPane_AttributePaneCreator.hxx>
|
||||
|
||||
@@ -38,22 +38,23 @@
|
||||
// function : Constructor
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
DFBrowserPane_AttributePaneAPI* DFBrowserPane_AttributePaneCreator::CreateAttributePane (Standard_CString theAttributeName)
|
||||
DFBrowserPane_AttributePaneAPI* DFBrowserPane_AttributePaneCreator::CreateAttributePane(
|
||||
Standard_CString theAttributeName)
|
||||
{
|
||||
DFBrowserPane_AttributePaneAPI* aPane = 0;
|
||||
if (theAttributeName == STANDARD_TYPE (TDF_Reference)->Name())
|
||||
if (theAttributeName == STANDARD_TYPE(TDF_Reference)->Name())
|
||||
aPane = new DFBrowserPane_TDFReference();
|
||||
else if (theAttributeName == STANDARD_TYPE (TDataStd_TreeNode)->Name())
|
||||
else if (theAttributeName == STANDARD_TYPE(TDataStd_TreeNode)->Name())
|
||||
aPane = new DFBrowserPane_TDataStdTreeNode();
|
||||
else if (theAttributeName == STANDARD_TYPE (TDataStd_ReferenceList)->Name())
|
||||
else if (theAttributeName == STANDARD_TYPE(TDataStd_ReferenceList)->Name())
|
||||
aPane = new DFBrowserPane_TDataStdReferenceList();
|
||||
else if (theAttributeName == STANDARD_TYPE (TDataStd_ReferenceArray)->Name())
|
||||
else if (theAttributeName == STANDARD_TYPE(TDataStd_ReferenceArray)->Name())
|
||||
aPane = new DFBrowserPane_TDataStdReferenceArray();
|
||||
else if (theAttributeName == STANDARD_TYPE (TNaming_NamedShape)->Name())
|
||||
else if (theAttributeName == STANDARD_TYPE(TNaming_NamedShape)->Name())
|
||||
aPane = new DFBrowserPane_TNamingNamedShape();
|
||||
else if (theAttributeName == STANDARD_TYPE (TNaming_Naming)->Name())
|
||||
else if (theAttributeName == STANDARD_TYPE(TNaming_Naming)->Name())
|
||||
aPane = new DFBrowserPane_TNamingNaming();
|
||||
else if (theAttributeName == STANDARD_TYPE (TNaming_UsedShapes)->Name())
|
||||
else if (theAttributeName == STANDARD_TYPE(TNaming_UsedShapes)->Name())
|
||||
aPane = new DFBrowserPane_TNamingUsedShapes();
|
||||
|
||||
return aPane;
|
||||
|
Reference in New Issue
Block a user