From e4294ec29446a6b1944d4d977d162d0a6bb4573f Mon Sep 17 00:00:00 2001 From: artemp Date: Mon, 27 Oct 2014 13:34:22 -0400 Subject: use prefix operator++ --- src/style/style_layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/style/style_layer.cpp b/src/style/style_layer.cpp index 4d64386be8..ded73c0444 100644 --- a/src/style/style_layer.cpp +++ b/src/style/style_layer.cpp @@ -20,7 +20,7 @@ void StyleLayer::setClasses(const std::vector &class_names, const t std::set already_applied; // Reverse iterate through all class names and apply them last to first. - for (auto it = class_names.rbegin(); it != class_names.rend(); it++) { + for (auto it = class_names.rbegin(); it != class_names.rend(); ++it) { const std::string &class_name = *it; // From here on, we're only dealing with IDs to avoid comparing strings all the time. const ClassID class_id = ClassDictionary::Get().lookup(class_name); -- cgit v1.2.1