Kaydet (Commit) 2ee69930 authored tarafından Dmitriy Shilin's avatar Dmitriy Shilin Kaydeden (comit) Mike Kaganski

vcl: use ref to const while iterating over palette entries

Change-Id: I2a1b36d9f4bb17f8b60af86a48bc9ec84588a32b
Reviewed-on: https://gerrit.libreoffice.org/64749
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 3d79f0ff
......@@ -211,7 +211,7 @@ bool IsDitherColor(BYTE nRed, BYTE nGreen, BYTE nBlue)
bool IsPaletteColor(BYTE nRed, BYTE nGreen, BYTE nBlue)
{
static PALETTEENTRY aImplSalSysPalEntryAry[] =
static const PALETTEENTRY aImplSalSysPalEntryAry[] =
{
{ 0, 0, 0, 0 },
{ 0, 0, 0x80, 0 },
......@@ -231,7 +231,7 @@ bool IsPaletteColor(BYTE nRed, BYTE nGreen, BYTE nBlue)
{ 0xFF, 0xFF, 0xFF, 0 }
};
for (auto& rPalEntry : aImplSalSysPalEntryAry)
for (const auto& rPalEntry : aImplSalSysPalEntryAry)
{
if(rPalEntry.peRed == nRed &&
rPalEntry.peGreen == nGreen &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment