Replace raw arrays with std::array<>

This commit is contained in:
Flössie
2019-06-14 08:58:04 +02:00
parent 015cffc73a
commit 80f2b6a002
10 changed files with 46 additions and 42 deletions

View File

@@ -281,8 +281,8 @@ bool FilmNegative::button1Pressed(int modifierKey)
// User has selected 2 reference gray spots. Calculating new exponents
// from channel values and updating parameters.
float newExps[3];
if(fnp->getFilmNegativeExponents(refSpotCoords[0], refSpotCoords[1], newExps)) {
std::array<float, 3> newExps;
if (fnp->getFilmNegativeExponents(refSpotCoords[0], refSpotCoords[1], newExps)) {
disableListener();
redExp->setValue(newExps[0]);
greenExp->setValue(newExps[1]);
@@ -335,4 +335,4 @@ void FilmNegative::switchOffEditMode ()
refSpotCoords.clear();
unsubscribe();
spotbutton->set_active(false);
}
}