aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/cgeocaches.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2013-01-09 23:00:37 +0100
committerSamuel Tardieu <sam@rfc1149.net>2013-01-09 23:00:37 +0100
commit14085f0656109c71a441e8dc144911a9c326dc29 (patch)
tree43fbc1edd682543dafd63a83215a630428d87949 /main/src/cgeo/geocaching/cgeocaches.java
parent8aeb27b43e627c594e938f0a5eb4986b39b4777c (diff)
downloadcgeo-14085f0656109c71a441e8dc144911a9c326dc29.zip
cgeo-14085f0656109c71a441e8dc144911a9c326dc29.tar.gz
cgeo-14085f0656109c71a441e8dc144911a9c326dc29.tar.bz2
Remove redundant initializer
Diffstat (limited to 'main/src/cgeo/geocaching/cgeocaches.java')
-rw-r--r--main/src/cgeo/geocaching/cgeocaches.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java
index 628c012..54b863c 100644
--- a/main/src/cgeo/geocaching/cgeocaches.java
+++ b/main/src/cgeo/geocaching/cgeocaches.java
@@ -1787,16 +1787,14 @@ public class cgeocaches extends AbstractListActivity implements FilteredActivity
return;
}
- SearchResult searchToUse = search;
-
// apply filter settings (if there's a filter)
Set<String> geocodes = new HashSet<String>();
for (cgCache cache : adapter.getFilteredList()) {
geocodes.add(cache.getGeocode());
}
- searchToUse = new SearchResult(geocodes);
- int count = searchToUse.getCount();
+ final SearchResult searchToUse = new SearchResult(geocodes);
+ final int count = searchToUse.getCount();
String mapTitle = title;
if (count > 0) {
mapTitle = title + " [" + count + "]";