Mercurial > hg > orthanc-stone
comparison Applications/Generic/GuiAdapter.cpp @ 845:cdba0dbb4682
removed some c++11 for older compilers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 14 Jun 2019 14:46:16 +0200 |
parents | 67f9c27214c5 |
children | bb88686acecc |
comparison
equal
deleted
inserted
replaced
844:84cd55245e2d | 845:cdba0dbb4682 |
---|---|
477 } | 477 } |
478 | 478 |
479 | 479 |
480 void GuiAdapter::OnAnimationFrame() | 480 void GuiAdapter::OnAnimationFrame() |
481 { | 481 { |
482 for (const auto& handler : animationFrameHandlers_) | 482 for (size_t i = 0; i < animationFrameHandlers_.size(); i++) |
483 { | 483 { |
484 // TODO: fix time | 484 // TODO: fix time |
485 (*(handler.first))(0,handler.second); | 485 (*(animationFrameHandlers_[i].first))(0, animationFrameHandlers_[i].second); |
486 } | 486 } |
487 } | 487 } |
488 | 488 |
489 void GuiAdapter::OnResize() | 489 void GuiAdapter::OnResize() |
490 { | 490 { |
491 for (const auto& handler : resizeHandlers_) | 491 for (size_t i = 0; i < resizeHandlers_.size(); i++) |
492 { | 492 { |
493 // TODO: fix time | 493 // TODO: fix time |
494 (*(handler.first))(0, handler.second); | 494 (*(resizeHandlers_[i].first))(0, resizeHandlers_[i].second); |
495 } | 495 } |
496 } | 496 } |
497 | 497 |
498 void GuiAdapter::OnMouseEvent(uint32_t windowID, const GuiAdapterMouseEvent& event) | 498 void GuiAdapter::OnMouseEvent(uint32_t windowID, const GuiAdapterMouseEvent& event) |
499 { | 499 { |