Avoid potential negative array index access to cached text.
[LibreOffice.git] / vcl / inc / BitmapSymmetryCheck.hxx
blob917b8b6d13a19fc2af08b8c508ac15a1af057872
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 */
11 #ifndef INCLUDED_VCL_INC_BITMAPSYMMETRYCHECK_HXX
12 #define INCLUDED_VCL_INC_BITMAPSYMMETRYCHECK_HXX
14 #include <vcl/bitmap.hxx>
16 class BitmapReadAccess;
18 class VCL_DLLPUBLIC BitmapSymmetryCheck final
20 public:
21 BitmapSymmetryCheck();
23 static bool check(Bitmap& rBitmap);
25 private:
26 static bool checkImpl(BitmapReadAccess const* pReadAccess);
29 #endif // INCLUDED_VCL_INC_BITMAPSYMMETRYCHECK_HXX
31 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */