From a3ee6e9f77b1ed449a03be8f6bde8b1f4814729b Mon Sep 17 00:00:00 2001 From: apn Date: Tue, 31 Mar 2015 15:12:58 +0300 Subject: [PATCH] 0025993: References to enums are wrapped wrong in SWIG Java Modified Graphic3d/Graphic3d_GraduatedTrihedron.hxx to prevent using const references to enumerations --- src/Graphic3d/Graphic3d_GraduatedTrihedron.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Graphic3d/Graphic3d_GraduatedTrihedron.hxx b/src/Graphic3d/Graphic3d_GraduatedTrihedron.hxx index 8b277e830d..f9fc58d2a0 100644 --- a/src/Graphic3d/Graphic3d_GraduatedTrihedron.hxx +++ b/src/Graphic3d/Graphic3d_GraduatedTrihedron.hxx @@ -172,8 +172,8 @@ public: const TCollection_AsciiString& NamesFont() const { return myNamesFont; } void SetNamesFont (const TCollection_AsciiString& theFont) { myNamesFont = theFont; } - const Font_FontAspect& NamesFontAspect() const { return myNamesStyle; } - void SetNamesFontAspect (const Font_FontAspect& theAspect) { myNamesStyle = theAspect; } + Font_FontAspect NamesFontAspect() const { return myNamesStyle; } + void SetNamesFontAspect (Font_FontAspect theAspect) { myNamesStyle = theAspect; } const Standard_Integer NamesSize() const { return myNamesSize; } void SetNamesSize (const Standard_Integer theValue) { myNamesSize = theValue; } @@ -181,8 +181,8 @@ public: const TCollection_AsciiString& ValuesFont () const { return myValuesFont; } void SetValuesFont (const TCollection_AsciiString& theFont) { myValuesFont = theFont; } - const Font_FontAspect& ValuesFontAspect() const { return myValuesStyle; } - void SetValuesFontAspect (const Font_FontAspect& theAspect) { myValuesStyle = theAspect; } + Font_FontAspect ValuesFontAspect() const { return myValuesStyle; } + void SetValuesFontAspect (Font_FontAspect theAspect) { myValuesStyle = theAspect; } const Standard_Integer ValuesSize() const { return myValuesSize; } void SetValuesSize (const Standard_Integer theValue) { myValuesSize = theValue; }