Fix gcc compilation errors
Originally committed to SVN as r6554.
This commit is contained in:
parent
36548b93b1
commit
6b141f2bd3
1 changed files with 2 additions and 2 deletions
|
@ -714,7 +714,7 @@ static bool cmp_style_name(const AssStyle *lft, const AssStyle *rgt) {
|
||||||
|
|
||||||
template<class Cont>
|
template<class Cont>
|
||||||
static void do_move(Cont& styls, int type, int& first, int& last, bool storage) {
|
static void do_move(Cont& styls, int type, int& first, int& last, bool storage) {
|
||||||
Cont::iterator begin = styls.begin();
|
typename Cont::iterator begin = styls.begin();
|
||||||
|
|
||||||
// Move up
|
// Move up
|
||||||
if (type == 0) {
|
if (type == 0) {
|
||||||
|
@ -731,7 +731,7 @@ static void do_move(Cont& styls, int type, int& first, int& last, bool storage)
|
||||||
}
|
}
|
||||||
// Move down
|
// Move down
|
||||||
else if (type == 2) {
|
else if (type == 2) {
|
||||||
if (last + 1 == styls.size()) return;
|
if (last + 1 == (int)styls.size()) return;
|
||||||
rotate(begin + first, begin + last + 1, begin + last + 2);
|
rotate(begin + first, begin + last + 1, begin + last + 2);
|
||||||
first++;
|
first++;
|
||||||
last++;
|
last++;
|
||||||
|
|
Loading…
Reference in a new issue