Archived issue #0030644

Coding - inline trivial methods of V3d_View class

CommunityOCCT:Codingclosed6 public notes

Search issues

Description

There method in V3d_View can be inlined by simpley returning their reference.

class V3d_View
{
   Standard_EXPORT Handle(V3d_Viewer) Viewer() const;
   Standard_EXPORT Handle(Aspect_Window) Window() const;
   Standard_EXPORT Handle(Graphic3d_CView) View() const;
}

Public activity

6 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Commenter 3.

[revision removed]


Detailed log of new commits:

Author: Commenter 3
Date: Wed Apr 17 14:58:35 2019 +0300

    0030644: Coding - inline trivial methods of V3d_View class
02Commenter 2
Branch [archived branch] has been updated forcibly by Commenter 3.

[revision removed]
03Commenter 2
Branch [archived branch] has been updated forcibly by Commenter 3.

[revision removed]
04Commenter 3
> There method in V3d_View can be inlined by simpley returning their reference.
> Handle(V3d_Viewer) V3d_View::Viewer()
V3d_View holds a back-reference to V3d_Viewer (raw pointer), not handle, hence cannot be modified to return a const reference.

05Commenter 3
Please raise the patch.
06Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]