From 00c22ef95e7a8275b96d406d1692bc8c3396998c Mon Sep 17 00:00:00 2001 From: Adam Reichold Date: Sun, 7 Feb 2016 18:11:24 +0100 Subject: [PATCH] Fix incorrect comment and add missing preamble to jagged array header. --- rtengine/jaggedarray.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/rtengine/jaggedarray.h b/rtengine/jaggedarray.h index 86d556c7f..4d01747da 100644 --- a/rtengine/jaggedarray.h +++ b/rtengine/jaggedarray.h @@ -1,10 +1,29 @@ +/* + * This file is part of RawTherapee. + * + * Copyright (c) 2016 Ingo Weyrich + * Copyright (c) 2016 Adam Reichold + * + * RawTherapee is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * RawTherapee is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with RawTherapee. If not, see . + */ #ifndef JAGGEDARRAY_H #define JAGGEDARRAY_H namespace rtengine { -// These emulate a jagged array, but use only 2 allocations instead of 1 + W. +// These emulate a jagged array, but use only 2 allocations instead of 1 + H. template inline T** const allocJaggedArray (const int W, const int H, const bool initZero = false)