mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-21 03:40:57 +00:00
Add const modifier to doc::sort_palette() args
This commit is contained in:
parent
2c02e67ebc
commit
144139f49d
@ -1,5 +1,5 @@
|
||||
// Aseprite Document Library
|
||||
// Copyright (c) 2001-2015 David Capello
|
||||
// Copyright (c) 2001-2017 David Capello
|
||||
//
|
||||
// This file is released under the terms of the MIT license.
|
||||
// Read LICENSE.txt for more information.
|
||||
@ -121,7 +121,9 @@ struct PalEntryWithIndexPredicate {
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
Remap sort_palette(Palette* palette, SortPaletteBy channel, bool ascending)
|
||||
Remap sort_palette(const Palette* palette,
|
||||
const SortPaletteBy channel,
|
||||
const bool ascending)
|
||||
{
|
||||
std::vector<PalEntryWithIndex> tmp(palette->size());
|
||||
for (int i=0; i<palette->size(); ++i) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Aseprite Document Library
|
||||
// Copyright (c) 2001-2015 David Capello
|
||||
// Copyright (c) 2001-2017 David Capello
|
||||
//
|
||||
// This file is released under the terms of the MIT license.
|
||||
// Read LICENSE.txt for more information.
|
||||
@ -26,7 +26,9 @@ namespace doc {
|
||||
};
|
||||
|
||||
// Creates a Remap to sort the palette. It doesn't apply the remap.
|
||||
Remap sort_palette(Palette* palette, SortPaletteBy channel, bool ascending);
|
||||
Remap sort_palette(const Palette* palette,
|
||||
const SortPaletteBy channel,
|
||||
const bool ascending);
|
||||
|
||||
} // namespace doc
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user