diff options
| author | MC Return <mc.return@gmx.net> | 2012-08-18 15:49:16 +0200 |
|---|---|---|
| committer | MC Return <mc.return@gmx.net> | 2012-08-18 15:49:16 +0200 |
| commit | d149e13ca13bbc4257a607d97b447f4873753d29 (patch) | |
| tree | f7f8a2d5f0d87fdc4d3f13b4c4991a9463ab51c2 /dash | |
| parent | 41fe683be6219c8d2af0edb70d21c6b447ecfece (diff) | |
Replaced the check push_preview_.size() with !push_preview_.empty() to optimize performance (2x)
(bzr r2583.1.1)
Diffstat (limited to 'dash')
| -rw-r--r-- | dash/previews/PreviewContainer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |
