aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/StaticMapsActivity.java
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2013-01-07 21:25:36 +0100
committerSamuel Tardieu <sam@rfc1149.net>2013-01-07 21:28:24 +0100
commit34add6e4844c9de685a8a16c1f164e896fdb18be (patch)
treea08ce5aff648d4a12e637d8b606040fb87de6239 /main/src/cgeo/geocaching/StaticMapsActivity.java
parent3f0fdd2b52bd96fbe7693cf92e87e78e379799d3 (diff)
downloadcgeo-34add6e4844c9de685a8a16c1f164e896fdb18be.zip
cgeo-34add6e4844c9de685a8a16c1f164e896fdb18be.tar.gz
cgeo-34add6e4844c9de685a8a16c1f164e896fdb18be.tar.bz2
Refactoring: simplify use of cursor queries
When the query has been built with a known set of fields to retrieve, there is no need to compute them as we statically know them. Also, the cursor cannot be null after a query that did not raise an exception. It is positionned before the first result, so moveToNext() can be called right away on it, allowing the use of while { … } rather than do { … } while.
Diffstat (limited to 'main/src/cgeo/geocaching/StaticMapsActivity.java')
0 files changed, 0 insertions, 0 deletions