X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=blobdiff_plain;f=src%2Fcollect-table.cc;h=0d3016fa1d1cc52cbaf864d9c9139acc66b9a8cf;hp=874d15d64dc842acee8de2645cbbfe4080a40c17;hb=8c8de657d610f3ce471d9f18596a18001a425809;hpb=2a3aaf4f1667460a05566e5da09c4f77a8f2dbcd diff --git a/src/collect-table.cc b/src/collect-table.cc index 874d15d6..0d3016fa 100644 --- a/src/collect-table.cc +++ b/src/collect-table.cc @@ -22,6 +22,7 @@ #include "collect-table.h" #include +#include #include #include @@ -511,7 +512,6 @@ static void collection_table_select_region_util(CollectTable *ct, CollectInfo *s gint col1; gint row2; gint col2; - gint t; gint i; gint j; @@ -548,15 +548,11 @@ static void collection_table_select_region_util(CollectTable *ct, CollectInfo *s if (row2 < row1) { - t = row1; - row1 = row2; - row2 = t; + std::swap(row1, row2); } if (col2 < col1) { - t = col1; - col1 = col2; - col2 = t; + std::swap(col1, col2); } DEBUG_1("table: %d x %d to %d x %d", row1, col1, row2, col2);