Cleanup: compiler warning, typo in comment

This commit is contained in:
Campbell Barton 2022-02-17 16:50:44 +11:00
parent bdde8c7207
commit 8c8d84fbc5
2 changed files with 6 additions and 4 deletions

View File

@ -50,7 +50,7 @@ class CurvesGeometryRuntime {
/**
* A C++ class that wraps the DNA struct for better encapsulation and ease of use. It inherits
* directly from the struct rather than storing a pointer to avoid more complcated ownership
* directly from the struct rather than storing a pointer to avoid more complicated ownership
* handling.
*/
class CurvesGeometry : public ::CurvesGeometry {

View File

@ -163,9 +163,11 @@ static void reset_bezts(tGraphSliderOp *gso)
ANIM_animdata_freelist(&anim_data);
}
/* Get factor value and store it in RNA property. Custom data of wmOperator needs to contain
* tGraphSliderOp. */
const float slider_factor_get_and_remember(wmOperator *op)
/**
* Get factor value and store it in RNA property.
* Custom data of #wmOperator needs to contain #tGraphSliderOp.
*/
static float slider_factor_get_and_remember(wmOperator *op)
{
tGraphSliderOp *gso = op->customdata;
const float factor = ED_slider_factor_get(gso->slider);