clean up warnings

This commit is contained in:
Rasmus Karlsson
2018-09-30 17:15:17 +00:00
parent a2fb4ca104
commit cd571a7e25
7 changed files with 28 additions and 30 deletions
+5 -4
View File
@@ -62,9 +62,10 @@ namespace detail {
while (true) {
this->index_ %= this->items_.size();
if (this->index_ >= this->items_.size()) {
this->index_ = this->index_;
}
// TODO: Figure out what this was supposed to achieve
// if (this->index_ >= this->items_.size()) {
// this->index_ = this->index_;
// }
if (this->durationOffset_ > this->items_[this->index_].duration) {
this->durationOffset_ -= this->items_[this->index_].duration;
@@ -310,7 +311,7 @@ void Image::load()
return Success;
});
req.onError([that = this, weak = weakOf(this)](auto result) -> bool {
req.onError([weak = weakOf(this)](auto result) -> bool {
auto shared = weak.lock();
if (!shared) return false;