wxMathPlot: Fixed a method name (Set->Get), GetName() returns a const reference
This commit is contained in:
parent
9c65d0d281
commit
c4e67c088d
|
@ -231,7 +231,7 @@ class WXDLLIMPEXP_MATHPLOT mpLayer : public wxObject
|
|||
/** Get layer name.
|
||||
@return Name
|
||||
*/
|
||||
wxString GetName() const { return m_name; }
|
||||
const wxString& GetName() const { return m_name; }
|
||||
|
||||
/** Get font set for this layer.
|
||||
@return Font
|
||||
|
@ -716,7 +716,7 @@ class WXDLLIMPEXP_MATHPLOT mpScaleX : public mpLayer
|
|||
|
||||
/** Get X axis Label format (used for mpX_NORMAL draw mode).
|
||||
@return The format string */
|
||||
const wxString& SetLabelFormat() { return m_labelFormat; };
|
||||
const wxString& GetLabelFormat() { return m_labelFormat; };
|
||||
|
||||
protected:
|
||||
int m_flags; //!< Flag for axis alignment
|
||||
|
@ -769,7 +769,7 @@ class WXDLLIMPEXP_MATHPLOT mpScaleY : public mpLayer
|
|||
|
||||
/** Get Y axis Label format.
|
||||
@return The format string */
|
||||
const wxString& SetLabelFormat() { return m_labelFormat; };
|
||||
const wxString& GetLabelFormat() { return m_labelFormat; };
|
||||
|
||||
protected:
|
||||
int m_flags; //!< Flag for axis alignment
|
||||
|
|
Loading…
Reference in New Issue