diff --git a/implot.cpp b/implot.cpp index 7fbabcd..66cf79e 100644 --- a/implot.cpp +++ b/implot.cpp @@ -1633,7 +1633,7 @@ bool BeginPlot(const char* title, const char* x_label, const char* y_label, cons //----------------------------------------------------------------------------- template -bool DragFloat(const char* label, F* v, float v_speed, F v_min, F v_max) { +bool DragFloat(const char*, F*, float, F, F) { return false; } diff --git a/implot_internal.h b/implot_internal.h index 815b4f7..abcaf17 100644 --- a/implot_internal.h +++ b/implot_internal.h @@ -150,8 +150,8 @@ template struct ImPlotPointArray { inline ImPlotPoint& operator[](int i) { return Data[i]; } inline const ImPlotPoint& operator[](int i) const { return Data[i]; } + inline int Size() { return N; } ImPlotPoint Data[N]; - const int Size = N; }; //-----------------------------------------------------------------------------