From d149e13ca13bbc4257a607d97b447f4873753d29 Mon Sep 17 00:00:00 2001 From: MC Return Date: Sat, 18 Aug 2012 15:49:16 +0200 Subject: Replaced the check push_preview_.size() with !push_preview_.empty() to optimize performance (2x) (bzr r2583.1.1) --- dash/previews/PreviewContainer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dash') diff --git a/dash/previews/PreviewContainer.cpp b/dash/previews/PreviewContainer.cpp index e7219cedb..c2f3baecb 100644 --- a/dash/previews/PreviewContainer.cpp +++ b/dash/previews/PreviewContainer.cpp @@ -104,7 +104,7 @@ public: if (!animating_) { - if (push_preview_.size()) + if (!push_preview_.empty()) { animating_= true; swipe_ = push_preview_.front(); @@ -164,7 +164,7 @@ public: } // another swipe? - if (push_preview_.size()) + if (!push_preview_.empty()) { progress_ = 0; continue_navigation.emit(); -- cgit v1.2.3