bool added = false;
int exists = false;
// Only add the scope if it does not exist yet in the list
- for (int i = 0; i < m_audioScopes.size(); i++) {
+ for (int i = 0; i < m_audioScopes.size(); ++i) {
if (m_audioScopes[i].scope == audioScope) {
exists = true;
break;
{
bool added = false;
int exists = false;
- for (int i = 0; i < m_colorScopes.size(); i++) {
+ for (int i = 0; i < m_colorScopes.size(); ++i) {
if (m_colorScopes[i].scope == colorScope) {
exists = true;
break;
#ifdef DEBUG_SM
qDebug() << "ScopeManager: Starting to distribute audio.";
#endif
- for (int i = 0; i < m_audioScopes.size(); i++) {
+ for (int i = 0; i < m_audioScopes.size(); ++i) {
// Distribute audio to all scopes that are visible and want to be refreshed
if (!m_audioScopes[i].scope->visibleRegion().isEmpty()) {
if (m_audioScopes[i].scope->autoRefreshEnabled()) {
#ifdef DEBUG_SM
qDebug() << "ScopeManager: Starting to distribute frame.";
#endif
- for (int i = 0; i < m_colorScopes.size(); i++) {
+ for (int i = 0; i < m_colorScopes.size(); ++i) {
if (!m_colorScopes[i].scope->visibleRegion().isEmpty()) {
if (m_colorScopes[i].scope->autoRefreshEnabled()) {
m_colorScopes[i].scope->slotRenderZoneUpdated(image);
// Search for the scope in the lists and tag it to trigger a forced update
// in the distribution slots
- for (int i = 0; i < m_colorScopes.size(); i++) {
+ for (int i = 0; i < m_colorScopes.size(); ++i) {
if (m_colorScopes[i].scope->widgetName() == widgetName) {
m_colorScopes[i].singleFrameRequested = true;
break;
}
}
- for (int i = 0; i < m_audioScopes.size(); i++) {
+ for (int i = 0; i < m_audioScopes.size(); ++i) {
if (m_audioScopes[i].scope->widgetName() == widgetName) {
m_audioScopes[i].singleFrameRequested = true;
break;
bool ScopeManager::audioAcceptedByScopes() const
{
bool accepted = false;
- for (int i = 0; i < m_audioScopes.size(); i++) {
+ for (int i = 0; i < m_audioScopes.size(); ++i) {
if (!m_audioScopes[i].scope->visibleRegion().isEmpty() && m_audioScopes[i].scope->autoRefreshEnabled()) {
accepted = true;
break;
bool ScopeManager::imagesAcceptedByScopes() const
{
bool accepted = false;
- for (int i = 0; i < m_colorScopes.size(); i++) {
+ for (int i = 0; i < m_colorScopes.size(); ++i) {
if (!m_colorScopes[i].scope->visibleRegion().isEmpty() && m_colorScopes[i].scope->autoRefreshEnabled()) {
accepted = true;
break;