Browse Source

wxMathPlot: Fixed a method name (Set->Get), GetName() returns a const reference

pull/3/merge
Maciej Suminski 10 years ago
parent
commit
c4e67c088d
  1. 6
      include/widgets/mathplot.h

6
include/widgets/mathplot.h

@ -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…
Cancel
Save