File tree 3 files changed +11
-11
lines changed
3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
1
// Aseprite Document Library
2
- // Copyright (c) 2001-2014 David Capello
2
+ // Copyright (c) 2001-2015 David Capello
3
3
//
4
4
// This file is released under the terms of the MIT license.
5
5
// Read LICENSE.txt for more information.
8
8
#define DOC_CEL_LIST_H_INCLUDED
9
9
#pragma once
10
10
11
- #include < list >
11
+ #include < vector >
12
12
13
13
namespace doc {
14
14
15
15
class Cel ;
16
16
17
- typedef std::list <Cel*> CelList;
18
- typedef std::list<Cel*> ::iterator CelIterator;
19
- typedef std::list<Cel*> ::const_iterator CelConstIterator;
17
+ typedef std::vector <Cel*> CelList;
18
+ typedef CelList ::iterator CelIterator;
19
+ typedef CelList ::const_iterator CelConstIterator;
20
20
21
21
} // namespace doc
22
22
Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ void LayerFolder::stackLayer(Layer* layer, Layer* after)
316
316
m_layers.insert (after_it, layer);
317
317
}
318
318
else
319
- m_layers.push_front ( layer);
319
+ m_layers.insert (m_layers. begin (), layer);
320
320
}
321
321
322
322
void LayerFolder::displaceFrames (frame_t fromThis, frame_t delta)
Original file line number Diff line number Diff line change 1
1
// Aseprite Document Library
2
- // Copyright (c) 2001-2014 David Capello
2
+ // Copyright (c) 2001-2015 David Capello
3
3
//
4
4
// This file is released under the terms of the MIT license.
5
5
// Read LICENSE.txt for more information.
8
8
#define DOC_LAYER_LIST_H_INCLUDED
9
9
#pragma once
10
10
11
- #include < list >
11
+ #include < vector >
12
12
13
13
namespace doc {
14
14
15
15
class Layer ;
16
16
17
- typedef std::list <Layer*> LayerList;
18
- typedef std::list<Layer*> ::iterator LayerIterator;
19
- typedef std::list<Layer*> ::const_iterator LayerConstIterator;
17
+ typedef std::vector <Layer*> LayerList;
18
+ typedef LayerList ::iterator LayerIterator;
19
+ typedef LayerList ::const_iterator LayerConstIterator;
20
20
21
21
} // namespace doc
22
22
You can’t perform that action at this time.
0 commit comments